Self-targeted sign portals throw NPEs
timothyekl opened this issue ยท 1 comments
This is more a placeholder issue than anything, since I've already found the fix, but here goes:
When a player attempts to use a sign portal with a self-targeted player destination (e.g. lithium3141 uses a sign portal with pl:lithium3141
), it throws an NPE:
21:10:15 [SEVERE] Could not pass event PLAYER_INTERACT to Multiverse-SignPortals
java.lang.NullPointerException
at com.onarandombox.MultiverseCore.utils.SafeTTeleporter.checkAboveAndBelowLocation(SafeTTeleporter.java:68)
at com.onarandombox.MultiverseCore.utils.SafeTTeleporter.getSafeLocation(SafeTTeleporter.java:45)
at com.onarandombox.MultiverseCore.utils.SafeTTeleporter.getSafeLocation(SafeTTeleporter.java:38)
at com.onarandombox.MultiverseCore.utils.SafeTTeleporter.getSafeLocation(SafeTTeleporter.java:275)
at com.onarandombox.MultiverseCore.utils.SafeTTeleporter.safelyTeleport(SafeTTeleporter.java:210)
at com.onarandombox.MultiverseSignPortals.listeners.MVSPPlayerListener.takePlayerToDestination(MVSPPlayerListener.java:116)
at com.onarandombox.MultiverseSignPortals.listeners.MVSPPlayerListener.onPlayerInteract(MVSPPlayerListener.java:83)
at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:335)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:593)
at net.minecraft.server.Packet15Place.a(SourceFile:39)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
Fixed in this Core commit.