diff options
| -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))  			{ | 
