diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-02-27 23:00:37 +0200 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-02-27 23:14:44 +0200 |
commit | 44ea9490797ce0e984aadbf438c7a2aceef5ddf0 (patch) | |
tree | 9c009b332632ee224e1aaffe2fee50fa9aa3d14d /indra/newview/llinventoryobserver.cpp | |
parent | 77b51cf953969789820c96ae32c7738081b9a8d0 (diff) |
Issue#900 Crash at LLInventoryAddItemByAssetObserver
Diffstat (limited to 'indra/newview/llinventoryobserver.cpp')
-rw-r--r-- | indra/newview/llinventoryobserver.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llinventoryobserver.cpp b/indra/newview/llinventoryobserver.cpp index fe067b621a..e1eaa18206 100644 --- a/indra/newview/llinventoryobserver.cpp +++ b/indra/newview/llinventoryobserver.cpp @@ -566,8 +566,12 @@ void LLInventoryAddItemByAssetObserver::changed(U32 mask) for (uuid_set_t::iterator it = added.begin(); it != added.end(); ++it) { LLInventoryItem *item = gInventory.getItem(*it); + if (!item) + { + continue; + } const LLUUID& asset_uuid = item->getAssetUUID(); - if (item && item->getUUID().notNull() && asset_uuid.notNull()) + if (item->getUUID().notNull() && asset_uuid.notNull()) { if (isAssetWatched(asset_uuid)) { |