From a7fa2151a02bcaea9eb22267d65b5691d86af70e Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 21 May 2019 03:04:27 -0400 Subject: [PATCH] Fix for NPE --- .../com/songoda/ultimatemoderation/gui/GUITicketManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/ultimatemoderation/gui/GUITicketManager.java b/src/main/java/com/songoda/ultimatemoderation/gui/GUITicketManager.java index e93fafa..5d511f9 100644 --- a/src/main/java/com/songoda/ultimatemoderation/gui/GUITicketManager.java +++ b/src/main/java/com/songoda/ultimatemoderation/gui/GUITicketManager.java @@ -38,7 +38,7 @@ public class GUITicketManager extends AbstractGUI { this.plugin = plugin; this.toModerate = toModerate; - init(plugin.getLocale().getMessage(toModerate != null ? "gui.tickets.titlesingle" : "gui.tickets.title", toModerate.getName()), 54); + init(plugin.getLocale().getMessage(toModerate != null ? "gui.tickets.titlesingle" : "gui.tickets.title", toModerate != null ? toModerate.getName() : ""), 54); } @Override