java.lang.NullPointerException

YouTrack | 10 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 | 3 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 jetbrains.mps.lang.structure.generator_new.baseLanguage.QueriesGenerated$1.accept()
    2. jetbrains.mps.lang
      QueriesGenerated$1.accept
      1. jetbrains.mps.lang.structure.generator_new.baseLanguage.QueriesGenerated$1.accept(QueriesGenerated.java:211)
      2. jetbrains.mps.lang.structure.generator_new.baseLanguage.QueriesGenerated$1.accept(QueriesGenerated.java:209)
      2 frames
    3. JetBrains mps
      IWhereFilter.invoke
      1. jetbrains.mps.internal.collections.runtime.IWhereFilter.invoke(IWhereFilter.java:12)
      2. jetbrains.mps.internal.collections.runtime.IWhereFilter.invoke(IWhereFilter.java:7)
      2 frames
    4. jetbrains.mps.internal
      FilteringSequence$FilteringIterator.hasNext
      1. jetbrains.mps.internal.collections.runtime.impl.FilteringSequence$FilteringIterator.moveToNext(FilteringSequence.java:63)
      2. jetbrains.mps.internal.collections.runtime.impl.FilteringSequence$FilteringIterator.hasNext(FilteringSequence.java:34)
      2 frames
    5. JetBrains mps
      AbstractSequence.count
      1. jetbrains.mps.internal.collections.runtime.IterableUtils.count(IterableUtils.java:46)
      2. jetbrains.mps.internal.collections.runtime.AbstractSequence.count(AbstractSequence.java:175)
      2 frames
    6. jetbrains.mps.lang
      QueriesGenerated.referenceMacro_GetReferent_5023950685592203880
      1. jetbrains.mps.lang.structure.generator_new.baseLanguage.QueriesGenerated.referenceMacro_GetReferent_5023950685592203880(QueriesGenerated.java:214)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    8. JetBrains mps
      DefaultQueryExecutionContext.getReferentTarget
      1. jetbrains.mps.util.QueryMethodGenerated$2.invoke(QueryMethodGenerated.java:206)
      2. jetbrains.mps.generator.template.DefaultQueryExecutionContext.getReferentTarget(DefaultQueryExecutionContext.java:248)
      2 frames
    9. jetbrains.mps.generator
      GenerationController.generate
      1. jetbrains.mps.generator.impl.reference.MacroResolver.resolve(MacroResolver.java:47)
      2. jetbrains.mps.generator.impl.reference.RefResolver$RefResolverAdapter.resolve(RefResolver.java:92)
      3. jetbrains.mps.generator.impl.reference.ReferenceInfo_Macro.expandReferenceMacro(ReferenceInfo_Macro.java:61)
      4. jetbrains.mps.generator.impl.reference.ReferenceInfo_Macro.create(ReferenceInfo_Macro.java:45)
      5. jetbrains.mps.generator.impl.reference.PostponedReference.initReplacementReference(PostponedReference.java:120)
      6. jetbrains.mps.generator.impl.reference.PostponedReferenceUpdate.prepare(PostponedReferenceUpdate.java:44)
      7. jetbrains.mps.generator.impl.TemplateGenerator.apply(TemplateGenerator.java:240)
      8. jetbrains.mps.generator.impl.GenerationSession.applyRules(GenerationSession.java:504)
      9. jetbrains.mps.generator.impl.GenerationSession.executeMajorStepInternal(GenerationSession.java:404)
      10. jetbrains.mps.generator.impl.GenerationSession.executeMajorStep(GenerationSession.java:361)
      11. jetbrains.mps.generator.impl.GenerationSession.generateModel(GenerationSession.java:239)
      12. jetbrains.mps.generator.impl.GenerationController.generateModel(GenerationController.java:131)
      13. jetbrains.mps.generator.impl.GenerationController.generate(GenerationController.java:65)
      13 frames
    10. JetBrains mps
      WorkbenchModelAccess$2.run
      1. jetbrains.mps.generator.GenerationFacade$3$1.compute(GenerationFacade.java:268)
      2. jetbrains.mps.generator.GenerationFacade$3$1.compute(GenerationFacade.java:265)
      3. jetbrains.mps.ide.undo.WorkbenchUndoHandler.runNonUndoableAction(WorkbenchUndoHandler.java:52)
      4. jetbrains.mps.smodel.UndoHelper.runNonUndoableAction(UndoHelper.java:63)
      5. jetbrains.mps.generator.GenerationFacade$3.run(GenerationFacade.java:265)
      6. jetbrains.mps.smodel.WorkbenchModelAccess$2.run(WorkbenchModelAccess.java:105)
      6 frames
    11. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:855)
      1 frame
    12. JetBrains mps
      CoreMakeTask$1.invoke
      1. jetbrains.mps.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:100)
      2. jetbrains.mps.smodel.ModelAccessBase.runReadAction(ModelAccessBase.java:53)
      3. jetbrains.mps.generator.GenerationFacade.process0(GenerationFacade.java:262)
      4. jetbrains.mps.generator.GenerationFacade.process(GenerationFacade.java:226)
      5. jetbrains.mps.lang.core.plugin.Generate_Facet$Target_generate$1.execute(Generate_Facet.java:480)
      6. jetbrains.mps.internal.make.runtime.script.Script$3.invoke(Script.java:292)
      7. jetbrains.mps.internal.make.runtime.script.Script$3.invoke(Script.java:235)
      8. jetbrains.mps.ide.make.WorkbenchMakeService$Controller.runJobWithMonitor(WorkbenchMakeService.java:330)
      9. jetbrains.mps.internal.make.runtime.script.Script.executeTargets(Script.java:235)
      10. jetbrains.mps.internal.make.runtime.script.Script.execute(Script.java:213)
      11. jetbrains.mps.make.service.CoreMakeTask$1.invoke(CoreMakeTask.java:103)
      12. jetbrains.mps.make.service.CoreMakeTask$1.invoke(CoreMakeTask.java:77)
      12 frames
    13. jetbrains.mps.make
      MakeSequence.iterate
      1. jetbrains.mps.make.dependencies.MakeSequence.iterate(MakeSequence.java:53)
      1 frame
    14. JetBrains mps
      MakeTask$2.run
      1. jetbrains.mps.make.service.CoreMakeTask.doRun(CoreMakeTask.java:77)
      2. jetbrains.mps.ide.make.MakeTask$WorkbenchMakeTask.doRun(MakeTask.java:146)
      3. jetbrains.mps.make.service.CoreMakeTask.run(CoreMakeTask.java:56)
      4. jetbrains.mps.ide.make.MakeTask$2.run(MakeTask.java:66)
      4 frames
    15. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame