From 584f751222b4e482bd10d1501255de62d7aa58a2 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Fri, 14 Jul 2023 10:58:40 -0400
Subject: [PATCH] Inventory crashfix

---
 indra/newview/llinventorypanel.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp
index 619f6d6da12..6b29dbadf90 100644
--- a/indra/newview/llinventorypanel.cpp
+++ b/indra/newview/llinventorypanel.cpp
@@ -619,7 +619,7 @@ void LLInventoryPanel::itemChanged(const LLUUID& item_id, U32 mask, const LLInve
             }
 
 			// Select any newly created object that has the auto rename at top of folder root set.
-			if(mFolderRoot.get()->getRoot()->needsAutoRename())
+			if(mFolderRoot.get() && mFolderRoot.get()->getRoot() && mFolderRoot.get()->getRoot()->needsAutoRename())
 			{
 				setSelection(item_id, FALSE);
 			}
-- 
GitLab