MAINT-6970 FIXED Crash in LLFloaterPermsDefault::updateCap()

master
Mnikolenko Productengine 2016-11-30 15:03:22 +02:00
parent c9e2432650
commit 8c79214f0b
1 changed files with 5 additions and 0 deletions

View File

@ -190,6 +190,11 @@ void LLFloaterPermsDefault::sendInitialPerms()
void LLFloaterPermsDefault::updateCap()
{
if (!gAgent.getRegion())
{
LL_WARNS("Avatar") << "Region not set, cannot request capability update" << LL_ENDL;
return;
}
std::string object_url = gAgent.getRegion()->getCapability("AgentPreferences");
if(!object_url.empty())