Fix Crash A: mFolders was being used without a null check

This commit is contained in:
Liru Færs
2020-01-04 02:57:40 -05:00
parent 8e01fcb7f0
commit 1853500e10

View File

@@ -1712,7 +1712,7 @@ void LLPanelObjectInventory::updateInventory()
// We're still interested in this task's inventory.
uuid_set_t selected_items;
BOOL inventory_has_focus = FALSE;
if (mHaveInventory)
if (mHaveInventory && mFolders)
{
selected_items = mFolders->getSelectionList();
inventory_has_focus = gFocusMgr.childHasKeyboardFocus(mFolders);