Catch a nullref

This commit is contained in:
root
2010-09-16 21:07:09 +02:00
parent d50a072336
commit 512ded6eb5

View File

@@ -334,7 +334,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
if (m_scene.InventoryService != null)
item = m_scene.InventoryService.GetItem(item);
presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/);
if (presence.Appearance != null)
presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/);
}
return att.UUID;