From 0fa8fbc4a7011b868716b09c1ab616a09e28fe0f Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Thu, 8 Sep 2022 22:38:48 +0300 Subject: SL-16156 Fix exit crash in 360 snapshot floater --- indra/newview/llagent.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'indra/newview/llagent.cpp') diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 7f6f6e5997..3d07e1585e 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -2906,9 +2906,11 @@ void LLAgent::processMaturityPreferenceFromServer(const LLSD &result, U8 perferr bool LLAgent::requestPostCapability(const std::string &capName, LLSD &postData, httpCallback_t cbSuccess, httpCallback_t cbFailure) { - std::string url; - - url = getRegion()->getCapability(capName); + if (!getRegion()) + { + return false; + } + std::string url = getRegion()->getCapability(capName); if (url.empty()) { -- cgit v1.2.3