Issue#900 Crash at LLInventoryAddItemByAssetObserver
parent
77b51cf953
commit
44ea949079
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue