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

to other issues, detaching an attachment would cause an exception.
0.6.0-stable
Melanie Thielker 2008-08-15 10:07:45 +00:00
parent d96701a0e4
commit e1620c5cc3
1 changed files with 1 additions and 1 deletions

View File

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