Attempted fix for mantis issue# 66

afrisby
MW 2007-12-01 15:20:49 +00:00
parent c28f505caa
commit 495cf040be
1 changed files with 11 additions and 2 deletions

View File

@ -167,6 +167,8 @@ namespace OpenSim.Region.Environment.Scenes
return; return;
} }
if (userInfo.RootFolder != null)
{
item = userInfo.RootFolder.HasItem(oldItemID); item = userInfo.RootFolder.HasItem(oldItemID);
if (item == null) if (item == null)
{ {
@ -174,6 +176,13 @@ namespace OpenSim.Region.Environment.Scenes
return; return;
} }
} }
else
{
MainLog.Instance.Warn("INVENTORY", "Failed to find item " + oldItemID.ToString());
return;
}
}
AssetBase asset = AssetCache.CopyAsset(item.assetID); AssetBase asset = AssetCache.CopyAsset(item.assetID);
if (asset == null) if (asset == null)