diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java index 6ab27ecd..50bbdd15 100644 --- a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java +++ b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java @@ -242,7 +242,7 @@ public class JavaPluginLoader implements PluginLoader { public void removeClass(String name) { Class<?> clazz = classes.remove(name); - if (ConfigurationSerializable.class.isAssignableFrom(clazz)) { + if ((clazz != null) && (ConfigurationSerializable.class.isAssignableFrom(clazz))) { Class<? extends ConfigurationSerializable> serializable = (Class<? extends ConfigurationSerializable>)clazz; ConfigurationSerialization.unregisterClass(serializable); } |