From 9e8464d5d941e1f24d6685f2207fbb28f7ab9ec5 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Fri, 28 Jul 2017 17:03:23 +0300 Subject: MAINT-7650 FIXED Crash in LLPreviewLSL::saveIfNeeded(bool) --- indra/newview/llpreviewscript.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview') diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index 5cdc5dfd38..b7fea4e982 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -1683,6 +1683,7 @@ void LLPreviewLSL::saveIfNeeded(bool sync /*= true*/) mScriptEd->sync(); } + if (!gAgent.getRegion()) return; const LLInventoryItem *inv_item = getItem(); // save it out to asset server std::string url = gAgent.getRegion()->getCapability("UpdateScriptAgent"); -- cgit v1.2.3