From 5ed45a658f883dcf0c89bc264a95ab8d95f9454f Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Wed, 12 Jul 2023 21:02:13 +0700 Subject: [PATCH] lazy lazy ;azy fix --- .../chipmunk/chayapak/chomens_bot/commands/SeenCommand.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/SeenCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/SeenCommand.java index 136294c..847bcf0 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/SeenCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/SeenCommand.java @@ -48,6 +48,8 @@ public class SeenCommand extends Command { final JsonObject lastSeen = playerElement.getAsJsonObject().get("lastSeen").getAsJsonObject(); + if (lastSeen == null) return null; + final DateTime dateTime = new DateTime(lastSeen.get("time").getAsLong(), DateTimeZone.UTC); final DateTimeFormatter formatter = DateTimeFormat.forPattern("EEEE, MMMM d, YYYY, hh:mm:ss a z");