summaryrefslogtreecommitdiff
path: root/indra/newview/llavataractions.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2013-11-25 17:19:48 -0800
committerMerov Linden <merov@lindenlab.com>2013-11-25 17:19:48 -0800
commit2776f8ac486dc34ea56b43409efeb37e35af6510 (patch)
treed6fa0d835c145f1d6964f38a1dd76009b5d19513 /indra/newview/llavataractions.cpp
parentc16de4df1834ccc15a6776c4fef7abb1789c2099 (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-xindra/newview/llavataractions.cpp4
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