mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user