forked from MagicBane/Server
city null pointer check
This commit is contained in:
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user