java.lang.NullPointerException

GitHub | 5igm | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  3. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.arckenver.nations.listener.GoldenAxeListener.onPlayerLeftClick()
    2. com.arckenver.nations
      GoldenAxeListener.onPlayerLeftClick
      1. com.arckenver.nations.listener.GoldenAxeListener.onPlayerLeftClick(GoldenAxeListener.java:78)[GoldenAxeListener.class:0.10]
      1 frame
    3. org.spongepowered.common
      RegisteredListener.handle
      1. org.spongepowered.common.event.listener.PrimaryListener_GoldenAxeListener_onPlayerLeftClick121.handle(Unknown Source)[?:?]
      2. org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)[RegisteredListener.class:1.8.9-1890-4.2.0-BETA-1666]
      2 frames
    4. org.spongepowered.mod
      SpongeModEventManager.post
      1. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:201)[SpongeModEventManager.class:1.8.9-1890-4.2.0-BETA-1666]
      2. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:184)[SpongeModEventManager.class:1.8.9-1890-4.2.0-BETA-1666]
      3. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:229)[SpongeModEventManager.class:1.8.9-1890-4.2.0-BETA-1666]
      4. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:214)[SpongeModEventManager.class:1.8.9-1890-4.2.0-BETA-1666]
      4 frames
    5. org.spongepowered.common
      SpongeImpl.postEvent
      1. org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:129)[SpongeImpl.class:1.8.9-1890-4.2.0-BETA-1666]
      1 frame
    6. Minecraft
      C07PacketPlayerDigging.func_148833_a
      1. net.minecraft.network.NetHandlerPlayServer.redirect$handleLeftBlockClick$0(NetHandlerPlayServer.java:515)[lm.class:?]
      2. net.minecraft.network.NetHandlerPlayServer.func_147345_a(NetHandlerPlayServer.java:525)[lm.class:?]
      3. net.minecraft.network.play.client.C07PacketPlayerDigging.func_148833_a(SourceFile:40)[ir.class:?]
      4. net.minecraft.network.play.client.C07PacketPlayerDigging.func_148833_a(SourceFile:10)[ir.class:?]
      4 frames
    7. org.spongepowered.common
      PacketUtil.onProcessPacket
      1. org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:121)[PacketUtil.class:1.8.9-1890-4.2.0-BETA-1666]
      1 frame
    8. Minecraft
      PacketThreadUtil$1.run
      1. net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$0(SourceFile:39)[fh$1.class:?]
      2. net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13)[fh$1.class:?]
      2 frames
    9. Java RT
      FutureTask.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[?:1.8.0_101]
      2. java.util.concurrent.FutureTask.run(Unknown Source)[?:1.8.0_101]
      2 frames
    10. net.minecraft.util
      Util.func_181617_a
      1. net.minecraft.util.Util.func_181617_a(SourceFile:44)[g.class:?]
      1 frame
    11. MC Server
      MinecraftServer.run
      1. net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:660)[MinecraftServer.class:?]
      2. net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:344)[ko.class:?]
      3. net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:605)[MinecraftServer.class:?]
      4. net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481)[MinecraftServer.class:?]
      4 frames
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)[?:1.8.0_101]
      1 frame