diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-03-24 01:53:45 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-04-01 23:06:44 +0300 |
commit | 7ddbf118f5d1fde24c10b93432209fbe44d91345 (patch) | |
tree | b3e618ec092310a9b51363606e1e5ec430cd5c42 /indra/newview/llsidepanelinventory.cpp | |
parent | d83c6563aacb0cbc2a196d575f409cc89bd8db12 (diff) |
SL-13182 Split buildNewViews over frames
Diffstat (limited to 'indra/newview/llsidepanelinventory.cpp')
-rw-r--r-- | indra/newview/llsidepanelinventory.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp index ea7e649792..a5dcdc41ed 100644 --- a/indra/newview/llsidepanelinventory.cpp +++ b/indra/newview/llsidepanelinventory.cpp @@ -653,7 +653,12 @@ bool LLSidepanelInventory::canWearSelected() LLInventoryItem *LLSidepanelInventory::getSelectedItem() { - LLFolderViewItem* current_item = mPanelMainInventory->getActivePanel()->getRootFolder()->getCurSelectedItem(); + LLFolderView* root = mPanelMainInventory->getActivePanel()->getRootFolder(); + if (!root) + { + return NULL; + } + LLFolderViewItem* current_item = root->getCurSelectedItem(); if (!current_item) { |