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
parent
d96701a0e4
commit
e1620c5cc3
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue