java.lang.NullPointerException

GitHub | lbialy | 7 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. 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 scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putType()
    2. Scala Compiler
      Pickler$Pickle$putTreeTraverser$.traverse
      1. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putType(Pickler.scala:257)
      2. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.put(Pickler.scala:272)
      3. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putTree(Pickler.scala:281)
      4. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:268)
      5. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:262)
      5 frames
    3. Scala
      Trees$Traverser.traverse
      1. scala.reflect.api.Trees$Traverser.traverseTrees(Trees.scala:2484)
      2. scala.reflect.internal.Trees$class.traverseComponents$1(Trees.scala:1234)
      3. scala.reflect.internal.Trees$class.itraverse(Trees.scala:1330)
      4. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      5. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      6. scala.reflect.api.Trees$Traverser.traverse(Trees.scala:2475)
      6 frames
    4. Scala Compiler
      Pickler$Pickle$putTreeTraverser$.traverse
      1. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.put(Pickler.scala:276)
      2. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putTree(Pickler.scala:281)
      3. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:268)
      4. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:262)
      4 frames
    5. Scala
      Trees$Traverser.traverse
      1. scala.reflect.internal.Trees$class.traverseComponents$1(Trees.scala:1294)
      2. scala.reflect.internal.Trees$class.itraverse(Trees.scala:1330)
      3. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      4. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      5. scala.reflect.api.Trees$Traverser.traverse(Trees.scala:2475)
      5 frames
    6. Scala Compiler
      Pickler$Pickle$putTreeTraverser$.traverse
      1. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.put(Pickler.scala:276)
      2. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putTree(Pickler.scala:281)
      3. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:268)
      4. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:262)
      4 frames
    7. Scala
      Trees$Traverser.traverse
      1. scala.reflect.api.Trees$Traverser.traverseTrees(Trees.scala:2484)
      2. scala.reflect.internal.Trees$class.traverseComponents$1(Trees.scala:1284)
      3. scala.reflect.internal.Trees$class.itraverse(Trees.scala:1330)
      4. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      5. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      6. scala.reflect.api.Trees$Traverser.traverse(Trees.scala:2475)
      6 frames
    8. Scala Compiler
      Pickler$Pickle$putTreeTraverser$.traverse
      1. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.put(Pickler.scala:276)
      2. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putTree(Pickler.scala:281)
      3. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:268)
      4. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:262)
      4 frames
    9. Scala
      Trees$Traverser.traverse
      1. scala.reflect.api.Trees$Traverser.traverseTrees(Trees.scala:2484)
      2. scala.reflect.internal.Trees$class.traverseComponents$1(Trees.scala:1284)
      3. scala.reflect.internal.Trees$class.itraverse(Trees.scala:1330)
      4. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      5. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      6. scala.reflect.api.Trees$Traverser.traverse(Trees.scala:2475)
      6 frames
    10. Scala Compiler
      Pickler$Pickle$putTreeTraverser$.traverse
      1. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.put(Pickler.scala:276)
      2. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putTree(Pickler.scala:281)
      3. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:268)
      4. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:262)
      4 frames
    11. Scala
      Trees$Traverser.traverse
      1. scala.reflect.api.Trees$Traverser.traverseTrees(Trees.scala:2484)
      2. scala.reflect.internal.Trees$class.traverseComponents$1(Trees.scala:1284)
      3. scala.reflect.internal.Trees$class.itraverse(Trees.scala:1330)
      4. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      5. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      6. scala.reflect.api.Trees$Traverser.traverse(Trees.scala:2475)
      6 frames
    12. Scala Compiler
      Pickler$Pickle$putTreeTraverser$.traverse
      1. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.put(Pickler.scala:276)
      2. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putTree(Pickler.scala:281)
      3. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:268)
      4. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:262)
      4 frames
    13. Scala
      Trees$Traverser.traverse
      1. scala.reflect.api.Trees$Traverser.traverseTrees(Trees.scala:2484)
      2. scala.reflect.internal.Trees$class.traverseComponents$1(Trees.scala:1284)
      3. scala.reflect.internal.Trees$class.itraverse(Trees.scala:1330)
      4. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      5. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      6. scala.reflect.api.Trees$Traverser.traverse(Trees.scala:2475)
      6 frames
    14. Scala Compiler
      Pickler$Pickle$putTreeTraverser$.traverse
      1. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.put(Pickler.scala:276)
      2. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putTree(Pickler.scala:281)
      3. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:268)
      4. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.traverse(Pickler.scala:262)
      4 frames
    15. Scala
      Trees$Traverser.traverse
      1. scala.reflect.api.Trees$Traverser.traverseTrees(Trees.scala:2484)
      2. scala.reflect.internal.Trees$class.traverseComponents$1(Trees.scala:1284)
      3. scala.reflect.internal.Trees$class.itraverse(Trees.scala:1330)
      4. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      5. scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
      6. scala.reflect.api.Trees$Traverser.traverse(Trees.scala:2475)
      6 frames
    16. Scala Compiler
      Global$GlobalPhase$$anonfun$run$1.apply
      1. scala.tools.nsc.symtab.classfile.Pickler$Pickle$putTreeTraverser$.put(Pickler.scala:276)
      2. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putTree(Pickler.scala:281)
      3. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putAnnotArg$1(Pickler.scala:317)
      4. scala.tools.nsc.symtab.classfile.Pickler$Pickle.putAnnotationBody(Pickler.scala:329)
      5. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putAnnotation(Pickler.scala:304)
      6. scala.tools.nsc.symtab.classfile.Pickler$Pickle.putSymbol(Pickler.scala:202)
      7. scala.tools.nsc.symtab.classfile.Pickler$Pickle.putSymbols(Pickler.scala:213)
      8. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putType(Pickler.scala:241)
      9. scala.tools.nsc.symtab.classfile.Pickler$Pickle.putSymbol(Pickler.scala:181)
      10. scala.tools.nsc.symtab.classfile.Pickler$Pickle.putSymbols(Pickler.scala:213)
      11. scala.tools.nsc.symtab.classfile.Pickler$Pickle.scala$tools$nsc$symtab$classfile$Pickler$Pickle$$putType(Pickler.scala:241)
      12. scala.tools.nsc.symtab.classfile.Pickler$Pickle.putSymbol(Pickler.scala:181)
      13. scala.tools.nsc.symtab.classfile.Pickler$PicklePhase.add$1(Pickler.scala:40)
      14. scala.tools.nsc.symtab.classfile.Pickler$PicklePhase.scala$tools$nsc$symtab$classfile$Pickler$PicklePhase$$pickle$1(Pickler.scala:51)
      15. scala.tools.nsc.symtab.classfile.Pickler$PicklePhase.scala$tools$nsc$symtab$classfile$Pickler$PicklePhase$$pickle$1(Pickler.scala:47)
      16. scala.tools.nsc.symtab.classfile.Pickler$PicklePhase.apply(Pickler.scala:60)
      17. scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply$mcV$sp(Global.scala:440)
      18. scala.tools.nsc.Global$GlobalPhase.withCurrentUnit(Global.scala:431)
      19. scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:440)
      20. scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:398)
      21. scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:398)
      21 frames
    17. Scala
      AbstractIterator.foreach
      1. scala.collection.Iterator$class.foreach(Iterator.scala:893)
      2. scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
      2 frames
    18. Scala Compiler
      Global$Run.compile
      1. scala.tools.nsc.Global$GlobalPhase.run(Global.scala:398)
      2. scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1501)
      3. scala.tools.nsc.Global$Run.compileUnits(Global.scala:1486)
      4. scala.tools.nsc.Global$Run.compileSources(Global.scala:1481)
      5. scala.tools.nsc.Global$Run.compile(Global.scala:1582)
      5 frames
    19. SBT
      CompilerInterface.run
      1. xsbt.CachedCompiler0.run(CompilerInterface.scala:116)
      2. xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
      3. xsbt.CompilerInterface.run(CompilerInterface.scala:26)
      3 frames
    20. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    21. SBT
      Defaults$$anonfun$compileIncrementalTask$1.apply
      1. sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
      2. sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
      3. sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
      4. sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50)
      5. sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
      6. sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
      7. sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)
      8. sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49)
      9. sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)
      10. sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
      11. sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
      12. sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
      13. sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
      14. sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)
      15. sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:68)
      16. sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:67)
      17. sbt.inc.Incremental$.manageClassfiles(Incremental.scala:95)
      18. sbt.inc.Incremental$.compile(Incremental.scala:67)
      19. sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
      20. sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
      21. sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
      22. sbt.Compiler$.compile(Compiler.scala:152)
      23. sbt.Compiler$.compile(Compiler.scala:138)
      24. sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)
      25. sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)
      26. sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)
      26 frames
    22. Scala
      Function1$$anonfun$compose$1.apply
      1. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
      1 frame
    23. SBT
      $tilde$greater$$anonfun$$u2219$1.apply
      1. sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
      1 frame
    24. sbt Task system
      Transform$$anon$4.work
      1. sbt.std.Transform$$anon$4.work(System.scala:63)
      1 frame
    25. SBT
      CompletionService$$anon$2.call
      1. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
      2. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
      3. sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
      4. sbt.Execute.work(Execute.scala:237)
      5. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
      6. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
      7. sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
      8. sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
      8 frames
    26. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      6. java.lang.Thread.run(Thread.java:745)
      6 frames