summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2017-07-28 17:03:23 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2017-07-28 17:03:23 +0300
commit9e8464d5d941e1f24d6685f2207fbb28f7ab9ec5 (patch)
treef9f6246137e9a4e4454faa3ba30b5b0c8a7fe7ee /indra/newview
parentc3f8eb716162f8cec2b2af2a881807b455c81597 (diff)
MAINT-7650 FIXED Crash in LLPreviewLSL::saveIfNeeded(bool)
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");