java.lang.NullPointerException

Stack Overflow | kn100 | 7 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. 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
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Cloud Foundry v2 in Grails

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

    NullPointerException in MIDlet with left soft key

    Stack Overflow | 6 years ago | berry120
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callItemListener(), bci=57 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=57 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 xxxxxx.drawCanvas.onDraw_Original()
    2. xxxxxx
      drawCanvas.onDraw
      1. xxxxxx.drawCanvas.onDraw_Original(drawCanvas.java:38)
      2. xxxxxx.drawCanvas.onDraw(drawCanvas.java)
      2 frames
    3. Android Platform
      ViewGroup.drawChild
      1. android.view.View.draw(View.java:17068)
      2. android.view.View.draw(View.java:16976)
      3. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)
      4. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
      5. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
      6. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
      7. android.view.View.draw(View.java:16974)
      8. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)
      9. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
      10. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
      10 frames
    4. android.support.design
      CoordinatorLayout.drawChild
      1. android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1140)
      1 frame
    5. Android Platform
      View.draw
      1. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
      2. android.view.View.draw(View.java:16974)
      3. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)
      4. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
      5. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
      6. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
      7. android.view.View.draw(View.java:16974)
      8. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)
      9. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
      10. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
      11. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
      12. android.view.View.draw(View.java:17071)
      12 frames
    6. com.android.layoutlib
      BridgeRenderSession.render
      1. com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:394)
      2. com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:496)
      3. com.android.layoutlib.bridge.BridgeRenderSession.render(BridgeRenderSession.java:87)
      3 frames
    7. com.android.tools.layoutlib.layoutlib-api
      RenderSession.render
      1. com.android.ide.common.rendering.api.RenderSession.render(RenderSession.java:154)
      2. com.android.ide.common.rendering.api.RenderSession.render(RenderSession.java:136)
      2 frames
    8. com.android.tools
      RenderTask.lambda$renderInner$54
      1. com.android.tools.idea.rendering.RenderTask.lambda$renderInner$54(RenderTask.java:698)
      1 frame
    9. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames