city null pointer check
This commit is contained in:
1 parent
b23d7d9b77
commit
81960ae183
1 file changed
+1
-1
@@ -397,7 +397,7 @@ public class City extends AbstractWorldObject {
|
||||
cities.add(city);
|
||||
}else {
|
||||
try {
|
||||
if (city.getGuild().getNation().equals(pc.guild.getNation())) {
|
||||
if (city.getGuild() != null && city.getGuild().getNation().equals(pc.guild.getNation())) {
|
||||
cities.add(city);
|
||||
}
|
||||
}catch(Exception e){
|
||||
|
||||
Reference in new issue
Block a user