summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorymodel.cpp
diff options
context:
space:
mode:
authorcallum_linden <none@none>2018-03-01 14:33:47 -0800
committercallum_linden <none@none>2018-03-01 14:33:47 -0800
commitf4867d032dfe93b249eb188f071cb309e3a7b23e (patch)
tree144bb92ed630302d1d68910069ad2505946eb471 /indra/newview/llinventorymodel.cpp
parent278382abd72a02b5e190cb259d2b4806f3908902 (diff)
parentf8c76535a35aaf245e261357a59e977bac5b2501 (diff)
Automated merge with tip of viewer-release
Diffstat (limited to 'indra/newview/llinventorymodel.cpp')
-rw-r--r--indra/newview/llinventorymodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index 054db2a3ec..6a1ec9f991 100644
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -617,6 +617,11 @@ LLUUID LLInventoryModel::createNewCategory(const LLUUID& parent_id,
return LLUUID::null;
}
+ if (!gMessageSystem)
+ {
+ return LLUUID::null;
+ }
+
// Add the category to the internal representation
LLPointer<LLViewerInventoryCategory> cat =
new LLViewerInventoryCategory(id, parent_id, preferred_type, name, gAgent.getID());