From b82b4a2e4b65e7517b04c19f120a1a7e83c4b04e Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Mon, 29 Jun 2015 15:46:43 +0200 Subject: [PATCH] Correction d'un NullPointerException --- .../java/plugin/pandacraftutils/commands/CommandStaff.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandStaff.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandStaff.java index 231ec6a..22b1d0a 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandStaff.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandStaff.java @@ -53,6 +53,7 @@ public class CommandStaff extends AbstractCommandExecutor { String message = getLastParam(args, 1); staffManager.addWaitingPlayer(player, message); + wp = staffManager.getWaitingPlayer(player); sender.sendMessage(ChatColor.GREEN+"Votre ticket a été envoyé :)"); displayTicket(sender, wp, false); sender.sendMessage(ChatColor.RED+"Faites "+ChatColor.GRAY+"/"+alias+ChatColor.RED+" pour voir les commandes disponibles");