diff options
author | Merov Linden <merov@lindenlab.com> | 2012-06-08 11:31:50 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2012-06-08 11:31:50 -0700 |
commit | 3f7ecef1968b9087ba7c885a2dd6213120dfa547 (patch) | |
tree | a8fa4f6b8546678c358dc1d827c58481afcba9c3 /indra/newview | |
parent | 85e553638e51994824683497bd9ccc964c7cc1fc (diff) |
CHUI-137 : Fix crasher in item drawing
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llfolderviewitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llfolderviewitem.cpp b/indra/newview/llfolderviewitem.cpp index 126de95551..73715c78df 100644 --- a/indra/newview/llfolderviewitem.cpp +++ b/indra/newview/llfolderviewitem.cpp @@ -864,8 +864,8 @@ void LLFolderViewItem::draw() const S32 FOCUS_LEFT = 1; const LLFontGL* font = getLabelFontForStyle(mLabelStyle); - const BOOL in_inventory = getListener() && gInventory.isObjectDescendentOf(getListener()->getUUID(), gInventory.getRootFolderID()); - const BOOL in_library = getListener() && gInventory.isObjectDescendentOf(getListener()->getUUID(), gInventory.getLibraryRootFolderID()); + const BOOL in_inventory = getListener() && getListener()->getUUID().notNull() && gInventory.isObjectDescendentOf(getListener()->getUUID(), gInventory.getRootFolderID()); + const BOOL in_library = getListener() && getListener()->getUUID().notNull() && gInventory.isObjectDescendentOf(getListener()->getUUID(), gInventory.getLibraryRootFolderID()); //--------------------------------------------------------------------------------// // Draw open folder arrow |