java.lang.NullPointerException

GitHub | Kostronor | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 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
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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
  4. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 2 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    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.minecolonies.entity.ai.citizen.lumberjack.Tree.addAndSearch()
    2. com.minecolonies.entity
      AbstractAISkeleton.checkOnTarget
      1. com.minecolonies.entity.ai.citizen.lumberjack.Tree.addAndSearch(Tree.java:340)[Tree.class:?]
      2. com.minecolonies.entity.ai.citizen.lumberjack.Tree.<init>(Tree.java:125)[Tree.class:?]
      3. com.minecolonies.entity.ai.citizen.lumberjack.EntityAIWorkLumberjack.setNewTree(EntityAIWorkLumberjack.java:274)[EntityAIWorkLumberjack.class:?]
      4. com.minecolonies.entity.ai.citizen.lumberjack.EntityAIWorkLumberjack.findTree(EntityAIWorkLumberjack.java:260)[EntityAIWorkLumberjack.class:?]
      5. com.minecolonies.entity.ai.citizen.lumberjack.EntityAIWorkLumberjack.findTrees(EntityAIWorkLumberjack.java:241)[EntityAIWorkLumberjack.class:?]
      6. com.minecolonies.entity.ai.util.AITarget.apply(AITarget.java:125)[AITarget.class:?]
      7. com.minecolonies.entity.ai.basic.AbstractAISkeleton.applyTarget(AbstractAISkeleton.java:192)[AbstractAISkeleton.class:?]
      8. com.minecolonies.entity.ai.basic.AbstractAISkeleton.checkOnTarget(AbstractAISkeleton.java:175)[AbstractAISkeleton.class:?]
      8 frames
    3. Java RT
      ReferencePipeline.anyMatch
      1. java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)[?:1.8.0_101]
      2. java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1351)[?:1.8.0_101]
      3. java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)[?:1.8.0_101]
      4. java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)[?:1.8.0_101]
      5. java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)[?:1.8.0_101]
      6. java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)[?:1.8.0_101]
      7. java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)[?:1.8.0_101]
      8. java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)[?:1.8.0_101]
      9. java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)[?:1.8.0_101]
      10. java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:449)[?:1.8.0_101]
      10 frames
    4. com.minecolonies.entity
      AbstractAISkeleton.func_75246_d
      1. com.minecolonies.entity.ai.basic.AbstractAISkeleton.func_75246_d(AbstractAISkeleton.java:129)[AbstractAISkeleton.class:?]
      1 frame
    5. net.minecraft.entity
      EntityAITasks.func_75774_a
      1. net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:129)[tr.class:?]
      1 frame
    6. Minecraft
      EntityAgeable.func_70636_d
      1. net.minecraft.entity.EntityLiving.func_70626_be(EntityLiving.java:773)[sg.class:?]
      2. net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:2189)[sf.class:?]
      3. net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:577)[sg.class:?]
      4. net.minecraft.entity.EntityAgeable.func_70636_d(EntityAgeable.java:155)[rt.class:?]
      4 frames
    7. com.minecolonies.entity
      EntityCitizen.func_70636_d
      1. com.minecolonies.entity.EntityCitizen.func_70636_d(EntityCitizen.java:636)[EntityCitizen.class:?]
      1 frame
    8. Minecraft
      EntityLiving.func_70071_h_
      1. net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2019)[sf.class:?]
      2. net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:295)[sg.class:?]
      2 frames
    9. org.spongepowered.common
      TrackingUtil.tickEntity
      1. org.spongepowered.common.event.tracking.TrackingUtil.tickEntity(TrackingUtil.java:143)[TrackingUtil.class:1.10.2-2092-5.0.0-BETA-1753]
      1 frame
    10. Minecraft
      WorldServer.func_72939_s
      1. net.minecraft.world.WorldServer.redirect$onCallEntityUpdate$0(WorldServer.java:1297)[ls.class:?]
      2. net.minecraft.world.World.func_72866_a(World.java:1964)[aid.class:?]
      3. net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:838)[ls.class:?]
      4. net.minecraft.world.World.func_72870_g(World.java:1934)[aid.class:?]
      5. net.minecraft.world.World.func_72939_s(World.java:1217)[aid.class:?]
      6. net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:704)[ls.class:?]
      6 frames
    11. MC Server
      MinecraftServer.run
      1. net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:709)[MinecraftServer.class:?]
      2. net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387)[ld.class:?]
      3. net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)[MinecraftServer.class:?]
      4. net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)[MinecraftServer.class:?]
      4 frames
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[?:1.8.0_101]
      1 frame