Avoid another null ref opportunity.

TeleportWork
Diva Canto 2013-07-30 22:07:33 -07:00
parent e4ecbc2b10
commit 3c540f0d33
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid
private void OnSimulatorFeaturesRequest(UUID agentID, ref OSDMap features) private void OnSimulatorFeaturesRequest(UUID agentID, ref OSDMap features)
{ {
if (m_UserManagement != null && !m_UserManagement.IsLocalGridUser(agentID) && m_MapImageServerURL != string.Empty) if (m_UserManagement != null && !string.IsNullOrEmpty(m_MapImageServerURL) && !m_UserManagement.IsLocalGridUser(agentID))
{ {
OSD extras = new OSDMap(); OSD extras = new OSDMap();
if (features.ContainsKey("OpenSimExtras")) if (features.ContainsKey("OpenSimExtras"))