diff options
author | Merov Linden <merov@lindenlab.com> | 2013-11-25 17:19:48 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-11-25 17:19:48 -0800 |
commit | 2776f8ac486dc34ea56b43409efeb37e35af6510 (patch) | |
tree | d6fa0d835c145f1d6964f38a1dd76009b5d19513 /indra/newview/llavataractions.cpp | |
parent | c16de4df1834ccc15a6776c4fef7abb1789c2099 (diff) |
MAINT-3320 : Make inbox (Received Items) more resilients to deletion while we're at it
Diffstat (limited to 'indra/newview/llavataractions.cpp')
-rwxr-xr-x | indra/newview/llavataractions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index 70cc48f12b..307e72fe18 100755 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -868,6 +868,10 @@ bool LLAvatarActions::canShareSelectedItems(LLInventoryPanel* inv_panel /* = NUL // check selection in the panel LLFolderView* root_folder = inv_panel->getRootFolder(); + if (!root_folder) + { + return false; + } const std::set<LLFolderViewItem*> inventory_selected = root_folder->getSelectionList(); if (inventory_selected.empty()) return false; // nothing selected |