Fixes a case where, when inventory is not currently accessible due

to other issues, detaching an attachment would cause an exception.
This commit is contained in:
Melanie Thielker
2008-08-15 10:07:45 +00:00
parent d96701a0e4
commit e1620c5cc3

View File

@@ -1712,7 +1712,7 @@ namespace OpenSim.Region.Environment.Scenes
CachedUserInfo userInfo =
CommsManager.UserProfileCacheService.GetUserDetails(agentID);
if (userInfo != null)
if (userInfo != null && userInfo.RootFolder != null)
{
Queue<InventoryFolderImpl> searchfolders = new Queue<InventoryFolderImpl>();
searchfolders.Enqueue(userInfo.RootFolder);