Fix a nullref in attachment handling. Add some debug to find the attachment

state issue
This commit is contained in:
Melanie Thielker
2010-04-23 14:41:20 +02:00
parent af778f09d5
commit 780630d7c0
4 changed files with 10 additions and 1 deletions

View File

@@ -271,7 +271,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
if (m_scene.TryGetScenePresence(remoteClient.AgentId, out presence))
{
InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId);
item = m_scene.InventoryService.GetItem(item);
if (m_scene.InventoryService != null)
item = m_scene.InventoryService.GetItem(item);
presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/);
}