SL-19982 make sure 'item' is not null

master
Mnikolenko Productengine 2023-08-04 15:36:40 +03:00
parent c3a2781c70
commit b6cd14fc47
1 changed files with 1 additions and 1 deletions

View File

@ -1624,7 +1624,7 @@ void LLPreviewLSL::draw()
setTitle(LLTrans::getString("ScriptWasDeleted"));
mScriptEd->setItemRemoved(TRUE);
}
if (mDirty)
else if (mDirty)
{
std::string item_path = get_category_path(item->getParentUUID());
getChild<LLUICtrl>("path_txt")->setValue(item_path);