From 5aceb016430c553a6226c7c2e2702d82ac7d3204 Mon Sep 17 00:00:00 2001 From: snowleo Date: Fri, 25 Nov 2011 00:22:57 +0100 Subject: Fix NPE in AlternativeCommandsHandler on shutdown --- Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java b/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java index 257d9a165..583401a55 100644 --- a/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java +++ b/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java @@ -78,7 +78,7 @@ public class AlternativeCommandsHandler while (pcIterator.hasNext()) { final PluginCommand pc = pcIterator.next(); - if (pc.getPlugin().equals(plugin)) + if (pc.getPlugin() == null || pc.getPlugin().equals(plugin)) { pcIterator.remove(); } -- cgit v1.2.3