From b6cd14fc47cff62f6a30874d71be86d6639c32da Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Fri, 4 Aug 2023 15:36:40 +0300 Subject: SL-19982 make sure 'item' is not null --- indra/newview/llpreviewscript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index 1666bfebd4..dc79abcdeb 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -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("path_txt")->setValue(item_path); -- cgit v1.2.3