mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
Fixed null ptr issue if foolsDay config var setting is not in the cfg files.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user