summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-11-25 00:22:57 +0100
committersnowleo <schneeleo@gmail.com>2011-11-25 00:22:57 +0100
commit5aceb016430c553a6226c7c2e2702d82ac7d3204 (patch)
treef0c05f1d9ad4b05a940a484650aca7264df1cbe2
parentec36ed54cb137c18dabee830a74ec8f48c0689b1 (diff)
downloadEssentials-5aceb016430c553a6226c7c2e2702d82ac7d3204.tar
Essentials-5aceb016430c553a6226c7c2e2702d82ac7d3204.tar.gz
Essentials-5aceb016430c553a6226c7c2e2702d82ac7d3204.tar.lz
Essentials-5aceb016430c553a6226c7c2e2702d82ac7d3204.tar.xz
Essentials-5aceb016430c553a6226c7c2e2702d82ac7d3204.zip
Fix NPE in AlternativeCommandsHandler on shutdown
-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();
}