diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-06-10 11:38:41 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-06-10 11:38:41 +0100 |
commit | 9370ffac47665c309c28fb075b26d8da43192e23 (patch) | |
tree | 2d74aeee65b3251991545a341f7fd55538f0fa51 /indra/newview/llinventoryfunctions.cpp | |
parent | 5f53ba9af70fac74d7f80393604a9f7c723be625 (diff) | |
parent | a61c8d2272ee709595655024d57a41bfa1ed5354 (diff) |
merge from PE's viewer-release
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rw-r--r-- | indra/newview/llinventoryfunctions.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index ca6cede7e9..c86d463a08 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -309,6 +309,11 @@ BOOL get_is_category_removable(const LLInventoryModel* model, const LLUUID& id) BOOL get_is_category_renameable(const LLInventoryModel* model, const LLUUID& id) { + if (!model) + { + return FALSE; + } + LLViewerInventoryCategory* cat = model->getCategory(id); if (cat && !LLFolderType::lookupIsProtectedType(cat->getPreferredType()) && |