mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-20 21:41:32 +02:00
Fix NPE in AlternativeCommandsHandler on shutdown
This commit is contained in:
@@ -78,7 +78,7 @@ public class AlternativeCommandsHandler
|
|||||||
while (pcIterator.hasNext())
|
while (pcIterator.hasNext())
|
||||||
{
|
{
|
||||||
final PluginCommand pc = pcIterator.next();
|
final PluginCommand pc = pcIterator.next();
|
||||||
if (pc.getPlugin().equals(plugin))
|
if (pc.getPlugin() == null || pc.getPlugin().equals(plugin))
|
||||||
{
|
{
|
||||||
pcIterator.remove();
|
pcIterator.remove();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user