Prevent the ExtraSettings code from crashing SQLite driven sims.

connector_plugin
Melanie 2012-10-02 00:51:38 +01:00
parent 0b9bf236dd
commit 402128bb53
1 changed files with 6 additions and 0 deletions

View File

@ -5545,6 +5545,9 @@ namespace OpenSim.Region.Framework.Scenes
public void StoreExtraSetting(string name, string val)
{
if (m_extraSettings == null)
return;
string oldVal;
if (m_extraSettings.TryGetValue(name, out oldVal))
@ -5562,6 +5565,9 @@ namespace OpenSim.Region.Framework.Scenes
public void RemoveExtraSetting(string name)
{
if (m_extraSettings == null)
return;
if (!m_extraSettings.ContainsKey(name))
return;