betterphp / BloodMoon

A plugin for Bukkit based Minecraft servers to add a new mechanic similar to the bloodmoon event in Terraria
http://dev.bukkit.org/server-mods/bloodmoon/
9 stars 15 forks source link

null pointer exception? #22

Closed astronwolf closed 11 years ago

astronwolf commented 12 years ago

Bloodmoon was crashing our server, during the day, not during a "bloodmoon." We experienced this...

2012-09-22 18:26:21 [SEVERE] Could not pass event PlayerPortalEvent to BloodMoon org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.ServerConfigurationManagerAbstract.changeDimension(ServerConfigurationManagerAbstract.java:473) at net.minecraft.server.EntityPlayer.c(EntityPlayer.java:373) at net.minecraft.server.BlockEnderPortal.a(SourceFile:64) at net.minecraft.server.Entity.D(Entity.java:695) at net.minecraft.server.Entity.move(Entity.java:647) at net.minecraft.server.EntityLiving.e(EntityLiving.java:953) at net.minecraft.server.EntityHuman.e(EntityHuman.java:1069) at net.minecraft.server.EntityLiving.d(EntityLiving.java:1124) at net.minecraft.server.EntityHuman.d(EntityHuman.java:305) at net.minecraft.server.EntityLiving.h(EntityLiving.java:447) at net.minecraft.server.EntityHuman.h(EntityHuman.java:158) at net.minecraft.server.EntityPlayer.g(EntityPlayer.java:203) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:347) at net.minecraft.server.Packet10Flying.handle(SourceFile:136) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:578) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at uk.co.jacekk.bukkit.bloodmoon.featurelisteners.LockInWorldListener.onPlayerTeleport(LockInWorldListener.java:25) at uk.co.jacekk.bukkit.bloodmoon.featurelisteners.LockInWorldListener.onPlayerPortal(LockInWorldListener.java:36) at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)

betterphp commented 12 years ago

That can only happen if someone teleports to a world that does not exists ... which makes no sense.

astronwolf commented 12 years ago

We only have two worlds active on our server: World and Nether. There has to be another explanation.