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

meow-7.2.2
Mnikolenko Productengine 2016-11-30 15:03:22 +02:00
parent c7a9cbc646
commit caa0e333ed
1 changed files with 5 additions and 0 deletions

View File

@ -183,6 +183,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())