summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2012-10-19 13:50:55 +0300
committermaxim_productengine <mnikolenko@productengine.com>2012-10-19 13:50:55 +0300
commit89ba6b793a5a8b3e0599cd2c8db2f1b479ec0fb4 (patch)
treea777336e3fa3ee7c19fdc45c26cc9bf9e4237ff7 /indra/llui
parentc14975b8e4dce1f0a257db0b88873eaf71daa110 (diff)
CHUI-418 FIXED Check the existence of mViewModelItem before calling potentiallyVisible().
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llfolderview.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llui/llfolderview.cpp b/indra/llui/llfolderview.cpp
index c1a11851e2..c8b8bcae48 100644
--- a/indra/llui/llfolderview.cpp
+++ b/indra/llui/llfolderview.cpp
@@ -504,7 +504,11 @@ void LLFolderView::sanitizeSelection()
LLFolderViewItem* item = *item_iter;
// ensure that each ancestor is open and potentially passes filtering
- BOOL visible = item->getViewModelItem()->potentiallyVisible(); // initialize from filter state for this item
+ BOOL visible = false;
+ if(item->getViewModelItem())
+ {
+ visible = item->getViewModelItem()->potentiallyVisible(); // initialize from filter state for this item
+ }
// modify with parent open and filters states
LLFolderViewFolder* parent_folder = item->getParentFolder();
// Move up through parent folders and see what's visible