From 36f85fbe13195bafd8ecba12ef256009384f1a95 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Wed, 28 Jun 2017 10:45:23 +0200 Subject: [PATCH] Added return to avoid double logging if a guild is null. --- src/main/java/handiebot/view/BotLog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/handiebot/view/BotLog.java b/src/main/java/handiebot/view/BotLog.java index fc2c05e..fdf33ad 100644 --- a/src/main/java/handiebot/view/BotLog.java +++ b/src/main/java/handiebot/view/BotLog.java @@ -89,6 +89,7 @@ public class BotLog { public void log(TYPE type, IGuild guild, String message){ if (guild == null){ log(type, message); + return; } Date date = new Date(System.currentTimeMillis()); DateFormat formatter = new SimpleDateFormat("HH:mm:ss:SSS");