Browse Source

city null pointer check

lakebane-recovery
FatBoy-DOTC 4 days ago
parent
commit
81960ae183
  1. 2
      src/engine/objects/City.java

2
src/engine/objects/City.java

@ -397,7 +397,7 @@ public class City extends AbstractWorldObject {
cities.add(city); cities.add(city);
}else { }else {
try { try {
if (city.getGuild().getNation().equals(pc.guild.getNation())) { if (city.getGuild() != null && city.getGuild().getNation().equals(pc.guild.getNation())) {
cities.add(city); cities.add(city);
} }
}catch(Exception e){ }catch(Exception e){

Loading…
Cancel
Save