If attachment fails (e.g. because asset wasn't found) then don't try to set attachment as shown in inventory
Doing this results in a null reference exceptionviewer-2-initial-appearance
parent
ff098ae110
commit
366de0a7b5
|
@ -233,10 +233,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
|||
if (updateInventoryStatus)
|
||||
{
|
||||
if (att == null)
|
||||
{
|
||||
ShowDetachInUserInventory(itemID, remoteClient);
|
||||
}
|
||||
|
||||
else
|
||||
SetAttachmentInventoryStatus(att, remoteClient, itemID, AttachmentPt);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue