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,14 +167,23 @@ namespace OpenSim.Region.Environment.Scenes
return;
}
item = userInfo.RootFolder.HasItem(oldItemID);
if (item == null)
if (userInfo.RootFolder != null)
{
item = userInfo.RootFolder.HasItem(oldItemID);
if (item == null)
{
MainLog.Instance.Warn("INVENTORY", "Failed to find item " + oldItemID.ToString());
return;
}
}
else
{
MainLog.Instance.Warn("INVENTORY", "Failed to find item " + oldItemID.ToString());
return;
}
}
AssetBase asset = AssetCache.CopyAsset(item.assetID);
if (asset == null)
{