diff --git a/src/engine/objects/Realm.java b/src/engine/objects/Realm.java index 43c103c5..319a1e15 100644 --- a/src/engine/objects/Realm.java +++ b/src/engine/objects/Realm.java @@ -91,9 +91,12 @@ public class Realm { java.sql.Timestamp ruledTimeStamp = rs.getTimestamp("ruledSince"); - if (ruledTimeStamp != null) + if (ruledTimeStamp != null){ this.ruledSince = LocalDateTime.ofInstant(ruledTimeStamp.toInstant(), ZoneId.systemDefault()); - + }else { + this.rulingCityUUID = 0; + this.charterType = 0; + } this.mapY1 = rs.getFloat("mapY1"); this.mapX1 = rs.getFloat("mapX1"); this.mapY2 = rs.getFloat("mapY2");