diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2018-02-02 18:06:16 +0200 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2018-02-02 18:06:16 +0200 |
commit | 7764d9d29177ca19a3342ec571fa00a7a0869dfa (patch) | |
tree | 221cbb746871b1a3d33c467e90089d85b4928682 /indra/newview | |
parent | 64b9b4c771430dcb0d65d557402b5f8bf81aa5a0 (diff) |
MAINT-8262 Crash in LLInventoryModel::createNewCategory(..)
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llinventorymodel.cpp | 5 |
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()); |