From 81960ae183888c2fb97a695aa43e2e9db1034769 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 30 Mar 2025 16:18:01 -0500 Subject: [PATCH] city null pointer check --- src/engine/objects/City.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index f7911913..1e500ca5 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -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){