summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorymodel.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-13 22:41:49 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-13 22:48:50 +0300
commit14eadadf993eb4f89188aa4cd8ea0859a86374d3 (patch)
tree7d73d65512f921ab1de66b83bb05047a0d7f05ed /indra/newview/llinventorymodel.cpp
parent19ed999be0d0cb2460e8962824478a6658e026c9 (diff)
SL-19857 Exception at category creation
Diffstat (limited to 'indra/newview/llinventorymodel.cpp')
-rw-r--r--indra/newview/llinventorymodel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index 59b34cc95c..ed375661b8 100644
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -1031,13 +1031,14 @@ void LLInventoryModel::createNewCategory(const LLUUID& parent_id,
{
if (new_category.isNull())
{
- if (callback)
+ if (callback && !callback.empty())
{
callback(new_category);
}
return;
}
+ // todo: not needed since AIS does the accounting?
LLViewerInventoryCategory* folderp = gInventory.getCategory(new_category);
if (!folderp)
{
@@ -1057,7 +1058,7 @@ void LLInventoryModel::createNewCategory(const LLUUID& parent_id,
updateCategory(cat);
}
- if (callback)
+ if (callback && !callback.empty())
{
callback(new_category);
}