diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-06-13 16:23:19 +0300 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-06-13 16:23:19 +0300 |
commit | 19ed999be0d0cb2460e8962824478a6658e026c9 (patch) | |
tree | 9ea0236a5bc7b4c69304022da2ce9ec15eb5742b /indra/newview | |
parent | 7f6ad82a2a76ed1f96bf1ca61cacc51151fe74bf (diff) |
SL-19858 FIXED Viewer crash when creating a new Setting in inventory
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llsettingsvo.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llsettingsvo.cpp b/indra/newview/llsettingsvo.cpp index 4cfa6f2f85..0cfdf67ed5 100644 --- a/indra/newview/llsettingsvo.cpp +++ b/indra/newview/llsettingsvo.cpp @@ -97,10 +97,15 @@ namespace //========================================================================= void LLSettingsVOBase::createNewInventoryItem(LLSettingsType::type_e stype, const LLUUID& parent_id, std::function<void(const LLUUID&)> created_cb) { - inventory_result_fn cb = [created_cb](LLUUID asset_id, LLUUID inventory_id, LLUUID object_id, LLSD results) + inventory_result_fn cb = NULL; + + if (created_cb != NULL) { - created_cb(inventory_id); - }; + cb = [created_cb](LLUUID asset_id, LLUUID inventory_id, LLUUID object_id, LLSD results) + { + created_cb(inventory_id); + }; + } createNewInventoryItem(stype, parent_id, cb); } |