From caa0e333ed0cec59e6e1c6e570051584335bfca3 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Wed, 30 Nov 2016 15:03:22 +0200 Subject: MAINT-6970 FIXED Crash in LLFloaterPermsDefault::updateCap() --- indra/newview/llfloaterperms.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'indra') diff --git a/indra/newview/llfloaterperms.cpp b/indra/newview/llfloaterperms.cpp index b0b2770c6e..2281ea1496 100644 --- a/indra/newview/llfloaterperms.cpp +++ b/indra/newview/llfloaterperms.cpp @@ -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()) -- cgit v1.2.3