Don't let a missing configuration cause a NRE

Fixes Mantis #3355
0.6.5-rc1
Melanie Thielker 2009-03-29 15:24:50 +00:00
parent 03063375ee
commit d857cf1335
2 changed files with 11 additions and 0 deletions

View File

@ -53,6 +53,12 @@ namespace OpenSim.Region.CoreModules.Avatar.MuteList
return;
IConfig cnf = config.Configs["Messaging"];
if (cnf == null)
{
enabled = false;
return;
}
if (cnf != null && cnf.GetString(
"MuteListModule", "None") !=
"MuteListModule")

View File

@ -53,6 +53,11 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
return;
IConfig cnf = config.Configs["Messaging"];
if (cnf == null)
{
enabled = false;
return;
}
if (cnf != null && cnf.GetString(
"OfflineMessageModule", "None") !=
"OfflineMessageModule")