mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
Catch a nullref
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user