Fixed null pointer issue.

This commit is contained in:
Cekis
2018-03-23 15:59:58 -07:00
committed by CekisSWG
parent b2bfdb30b3
commit 67c50b68d5
+2 -1
View File
@@ -205,7 +205,8 @@ public class instance_manager extends script.base_script
instance.closeInstance(self);
return SCRIPT_CONTINUE;
}
dict.put("player", players);
if(players != null)
dict.put("player", players);
messageTo(self, "validatePlayer", dict, 0.0f, false);
int minPlayers = instance.getMinPlayers(self);
int numPlayers = instance.getCurrentPopulation(self);