diff options
author | Andrey Lihatskiy <andreylproductengine@lindenlab.com> | 2017-07-28 16:21:43 +0000 |
---|---|---|
committer | Andrey Lihatskiy <andreylproductengine@lindenlab.com> | 2017-07-28 16:21:43 +0000 |
commit | 8265464260d109b335249fce18c09e1a31096c60 (patch) | |
tree | 2dffb76a83c64a260569fe0f15ec384ecbc86fcc /indra | |
parent | 304de39ff1b7d7c897adff50a71488e3361442d7 (diff) | |
parent | 9e8464d5d941e1f24d6685f2207fbb28f7ab9ec5 (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')
-rw-r--r-- | indra/newview/llpreviewscript.cpp | 1 |
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"); |