Issue#900 Crash at LLInventoryAddItemByAssetObserver

master
Andrey Kleshchev 2024-02-27 23:00:37 +02:00 committed by Andrey Kleshchev
parent 77b51cf953
commit 44ea949079
1 changed files with 5 additions and 1 deletions

View File

@ -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))
{