From 5f5616fd2d2931b9943ed36d918e894b9699d784 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 2 Mar 2024 19:01:54 -0600 Subject: [PATCH] guards --- src/engine/objects/Realm.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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");