From f513e7b3524dfa1a667437e10293d240ee616ac3 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 27 Jun 2017 20:49:42 +0200 Subject: [PATCH] FIRE-21323: Crash fix in changing LanguageIsPublic without connected region --- indra/newview/llagent.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 268cd3e577..caaddab212 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -3283,7 +3283,10 @@ bool LLAgent::requestPostCapability(const std::string &capName, LLSD &postData, { std::string url; - url = getRegion()->getCapability(capName); + // FIRE-21323: Crashfix + //url = getRegion()->getCapability(capName); + url = getRegion() ? getRegion()->getCapability(capName) : ""; + // if (url.empty()) { @@ -3299,7 +3302,10 @@ bool LLAgent::requestGetCapability(const std::string &capName, httpCallback_t cb { std::string url; - url = getRegion()->getCapability(capName); + // FIRE-21323: Crashfix + //url = getRegion()->getCapability(capName); + url = getRegion() ? getRegion()->getCapability(capName) : ""; + // if (url.empty()) {