Catch a nullref

avinationmerge
root 2010-09-16 21:07:09 +02:00
parent d50a072336
commit 512ded6eb5
1 changed files with 2 additions and 1 deletions

View File

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