NullPointerException when changing worlds #12


  • Defect
  • Started
Open
Assigned to _ForgeUser8881742
  • _ForgeUser4260237 created this issue Aug 28, 2012

    What steps will reproduce the problem?
    I use this plugin in my mob arena for the spell casting classes. When users first tp to the mobarena world the wand works fine but after the match is finished and they teleport back to spawn I get the error

    What is the expected output? What do you see instead?
    15:20:55 [SEVERE] Could not pass event PlayerInteractEvent to MagicalSpells
    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 org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:355)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:649)
            at net.minecraftserverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:94)
            at net.minecraft.server.Packet15Place.handle(SourceFile:58)
            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:581)
            at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
            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 Squish000.MagicalWands.MagicalPlayer.cycleSpell(MagicalPlayer.java:534)
            at Squish000.MagicalWands.PlayerListener.onPlayerInteract(PlayerListener.java:117)
            at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
            ... 17 more

    What version of the product are you using?
    Latest

    Please provide any additional information below.
    I think this may be caused by one of your iterators not resetting on death or world tp maybe in your cycleSpell method. Any idea on how to fix this atm my players are just using /ms reload which is ok for now but my players and I love this mod it would be nice if it was fixed :D

  • _ForgeUser4260237 added the tags New Defect Aug 28, 2012
  • _ForgeUser8881742 removed a tag New Aug 29, 2012
  • _ForgeUser8881742 added a tag Started Aug 29, 2012

To post a comment, please login or register a new account.