summaryrefslogtreecommitdiff
path: root/indra/newview/llavataractions.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2014-04-22 12:19:28 -0600
committerXiaohong Bao <bao@lindenlab.com>2014-04-22 12:19:28 -0600
commitae564140c0ff1e05ebfab0752458313da0c07a79 (patch)
treefc8a1c9828f2baf8a64b8439561d2db99fc12a81 /indra/newview/llavataractions.cpp
parente36b90539525095101526086db5c0cd282060388 (diff)
parentc71e459bed68c1602d409e5c946c5e016d09d105 (diff)
Merge
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 c5b1dc94b2..dad85a016c 100755
--- a/indra/newview/llavataractions.cpp
+++ b/indra/newview/llavataractions.cpp
@@ -876,6 +876,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