Minor improvement over the previous commit -- make sure the code exists in the FolderType enum
parent
9e21647011
commit
057d1b2a6e
|
@ -187,7 +187,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
|||
InventoryFolderBase f = new InventoryFolderBase(folderID, remoteClient.AgentId);
|
||||
InventoryFolderBase folder = m_Scene.InventoryService.GetFolder(f);
|
||||
|
||||
if (folder == null)
|
||||
if (folder == null && Enum.IsDefined(typeof(FolderType), (sbyte)invType))
|
||||
{
|
||||
folder = m_Scene.InventoryService.GetFolderForType(remoteClient.AgentId, (FolderType)invType);
|
||||
if (folder != null)
|
||||
|
|
Loading…
Reference in New Issue