summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Lihatskiy <andreylproductengine@lindenlab.com>2017-07-28 16:21:43 +0000
committerAndrey Lihatskiy <andreylproductengine@lindenlab.com>2017-07-28 16:21:43 +0000
commit8265464260d109b335249fce18c09e1a31096c60 (patch)
tree2dffb76a83c64a260569fe0f15ec384ecbc86fcc /indra/newview
parent304de39ff1b7d7c897adff50a71488e3361442d7 (diff)
parent9e8464d5d941e1f24d6685f2207fbb28f7ab9ec5 (diff)
Merged in maxim_productengine/viewer-lynx_maint (pull request #63)
MAINT-7650 FIXED Crash in LLPreviewLSL::saveIfNeeded(bool) Approved-by: Andrey Kleshchev <andreykproductengine@lindenlab.com> Approved-by: Andrey Lihatskiy <andreylproductengine@lindenlab.com>
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpreviewscript.cpp1
1 files changed, 1 insertions, 0 deletions
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");