Fixed null ptr issue if foolsDay config var setting is not in the cfg files.

This commit is contained in:
Cekis
2016-05-23 02:47:28 +01:00
parent 6c5af48e2d
commit 66cf6694e3
@@ -28,7 +28,7 @@ public class starport_april_fools extends script.base_script
public int heartbeat(obj_id self, dictionary params) throws InterruptedException
{
String foolsDayRunning = getConfigSetting("GameServer", "foolsDay");
if(foolsDayRunning.equals("false") || foolsDayRunning.equals("0")){
if(foolsDayRunning == null || foolsDayRunning.equals("false") || foolsDayRunning.equals("0")){
return SCRIPT_CONTINUE;
}
if (foolsDayRunning.length() <= 0)