avoid a null ref

0.9.1.0-post-fixes
UbitUmarov 2018-10-08 16:59:57 +01:00
parent 87e97543d6
commit 7eeaee631d
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@ namespace OpenSim.Capabilities.Handlers
List<InventoryCollection> invcollSet = Fetch(folders, bad_folders, ref total_folders, ref total_items);
//m_log.DebugFormat("[XXX]: Got {0} folders from a request of {1}", invcollSet.Count, folders.Count);
int invcollSetCount = invcollSet.Count;
int invcollSetCount = 0;
if (invcollSet != null)
invcollSetCount = invcollSet.Count;
int mem = 8192 + ((256 * invcollSetCount +
384 * total_folders +