0

Fixed NPE

This commit is contained in:
Pepich 2017-05-05 10:10:40 +02:00
parent 538560a8cd
commit df786c7c3e

View File

@ -324,11 +324,16 @@ public final class ModuleLoader implements CoreModule
CommandManager.unregisterAll(commands);
try
{
loaders.get(module).close();
URLClassLoader loader = loaders.get(module);
if (loader != null)
loader.close();
}
catch (IOException e)
{}
loaders.remove(module);
finally
{
loaders.remove(module);
}
}
}