Fix for NPE

This commit is contained in:
Brianna 2019-05-21 03:04:27 -04:00
parent 7d8b0dcaf4
commit a7fa2151a0

View File

@ -38,7 +38,7 @@ public class GUITicketManager extends AbstractGUI {
this.plugin = plugin; this.plugin = plugin;
this.toModerate = toModerate; 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 @Override