summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java2
1 files changed, 1 insertions, 1 deletions
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();
}