MAINT-7650 FIXED Crash in LLPreviewLSL::saveIfNeeded(bool)

meow-7.2.2
Mnikolenko Productengine 2017-07-28 17:03:23 +03:00
parent c3f8eb7161
commit 9e8464d5d9
1 changed files with 1 additions and 0 deletions

View File

@ -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");