From b1ef269dd3cc0557c37dc1f205fe8929ac49f4e9 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 2 Aug 2016 01:15:53 +0100 Subject: [PATCH] add a extra null check on epxirecache out ( ?? ) --- OpenSim/Services/Connectors/Estate/EstateDataConnector.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Services/Connectors/Estate/EstateDataConnector.cs b/OpenSim/Services/Connectors/Estate/EstateDataConnector.cs index 6412bcd72d..eed25cc8f7 100644 --- a/OpenSim/Services/Connectors/Estate/EstateDataConnector.cs +++ b/OpenSim/Services/Connectors/Estate/EstateDataConnector.cs @@ -119,7 +119,7 @@ namespace OpenSim.Services.Connectors List eids = new List(); // If we don't have them, load them from the server List estates = null; - if (!m_EstateCache.TryGetValue("estates", out estates)) + if (!m_EstateCache.TryGetValue("estates", out estates) || estates == null) LoadEstateSettingsAll(); foreach (EstateSettings es in estates) @@ -132,7 +132,7 @@ namespace OpenSim.Services.Connectors { // If we don't have them, load them from the server List estates = null; - if (!m_EstateCache.TryGetValue("estates", out estates)) + if (!m_EstateCache.TryGetValue("estates", out estates) || estates == null) LoadEstateSettingsAll(); List eids = new List(); @@ -147,7 +147,7 @@ namespace OpenSim.Services.Connectors { // If we don't have them, load them from the server List estates = null; - if (!m_EstateCache.TryGetValue("estates", out estates)) + if (!m_EstateCache.TryGetValue("estates", out estates) || estates == null) LoadEstateSettingsAll(); List eids = new List();