diff options
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateInventoryData.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateInventoryData.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs index dc98d11..e648396 100644 --- a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs +++ b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs | |||
@@ -344,7 +344,14 @@ namespace OpenSim.Data.NHibernate | |||
344 | // See IInventoryDataPlugin | 344 | // See IInventoryDataPlugin |
345 | public List<InventoryFolderBase> getFolderHierarchy(UUID parentID) | 345 | public List<InventoryFolderBase> getFolderHierarchy(UUID parentID) |
346 | { | 346 | { |
347 | if (parentID == UUID.Zero) | ||
348 | { | ||
349 | // Zero UUID is not a real parent folder. | ||
350 | return new List<InventoryFolderBase>(); | ||
351 | } | ||
352 | |||
347 | List<InventoryFolderBase> folders = new List<InventoryFolderBase>(); | 353 | List<InventoryFolderBase> folders = new List<InventoryFolderBase>(); |
354 | |||
348 | getInventoryFolders(ref folders, parentID); | 355 | getInventoryFolders(ref folders, parentID); |
349 | 356 | ||
350 | for (int i = 0; i < folders.Count; i++) | 357 | for (int i = 0; i < folders.Count; i++) |