mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-10-06 03:27:50 +02:00
Fix NPE in AlternativeCommandsHandler on shutdown
This commit is contained in:
parent
32e43bf167
commit
31b9e792bd
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user