java.lang.NullPointerException

GitHub | AndreasMager | 5 months ago
  1. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.google.errorprone.bugpatterns.threadsafety.GuardedByBinder$2.normalizeBase()
    2. com.google.errorprone
      GuardedByBinder$2.visitMethodInvocation
      1. com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder$2.normalizeBase(GuardedByBinder.java:297)
      2. com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder$2.visitMethodInvocation(GuardedByBinder.java:195)
      3. com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder$2.visitMethodInvocation(GuardedByBinder.java:173)
      3 frames
    3. Java Tools
      SimpleTreeVisitor.visit
      1. com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1614)
      2. com.sun.source.util.SimpleTreeVisitor.visit(SimpleTreeVisitor.java:81)
      2 frames
    4. com.google.errorprone
      GuardedByBinder$2.visitMethodInvocation
      1. com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder$2.visitMethodInvocation(GuardedByBinder.java:191)
      2. com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder$2.visitMethodInvocation(GuardedByBinder.java:173)
      2 frames
    5. Java Tools
      SimpleTreeVisitor.visit
      1. com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1614)
      2. com.sun.source.util.SimpleTreeVisitor.visit(SimpleTreeVisitor.java:81)
      2 frames
    6. com.google.errorprone
      ErrorProneScanner.visitVariable
      1. com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.bind(GuardedByBinder.java:105)
      2. com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.bindString(GuardedByBinder.java:73)
      3. com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils.isGuardedByValid(GuardedByUtils.java:93)
      4. com.google.errorprone.bugpatterns.threadsafety.GuardedByValidator.validate(GuardedByValidator.java:72)
      5. com.google.errorprone.bugpatterns.threadsafety.GuardedByValidator.matchVariable(GuardedByValidator.java:68)
      6. com.google.errorprone.scanner.ErrorProneScanner.visitVariable(ErrorProneScanner.java:1005)
      7. com.google.errorprone.scanner.ErrorProneScanner.visitVariable(ErrorProneScanner.java:146)
      7 frames
    7. Java Tools
      TreePathScanner.scan
      1. com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:938)
      2. com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:72)
      2 frames
    8. com.google.errorprone
      ErrorProneScanner.scan
      1. com.google.errorprone.scanner.Scanner.scan(Scanner.java:91)
      2. com.google.errorprone.scanner.ErrorProneScanner.scan(ErrorProneScanner.java:1050)
      3. com.google.errorprone.scanner.ErrorProneScanner.scan(ErrorProneScanner.java:146)
      3 frames
    9. Java Tools
      TreeScanner.visitClass
      1. com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:91)
      2. com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
      3. com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:114)
      4. com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:188)
      4 frames
    10. com.google.errorprone
      ErrorProneScanner.visitClass
      1. com.google.errorprone.scanner.ErrorProneScanner.visitClass(ErrorProneScanner.java:590)
      2. com.google.errorprone.scanner.ErrorProneScanner.visitClass(ErrorProneScanner.java:146)
      2 frames
    11. Java Tools
      TreePathScanner.scan
      1. com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:778)
      2. com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:72)
      2 frames
    12. com.google.errorprone
      ErrorProneScanner.scan
      1. com.google.errorprone.scanner.Scanner.scan(Scanner.java:91)
      2. com.google.errorprone.scanner.ErrorProneScanner.scan(ErrorProneScanner.java:1050)
      3. com.google.errorprone.scanner.ErrorProneScanner.scan(ErrorProneScanner.java:146)
      3 frames
    13. Java Tools
      TreeScanner.visitCompilationUnit
      1. com.sun.source.util.TreeScanner.scan(TreeScanner.java:106)
      2. com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:114)
      3. com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:145)
      3 frames
    14. com.google.errorprone
      ErrorProneScanner.visitCompilationUnit
      1. com.google.errorprone.scanner.ErrorProneScanner.visitCompilationUnit(ErrorProneScanner.java:601)
      2. com.google.errorprone.scanner.ErrorProneScanner.visitCompilationUnit(ErrorProneScanner.java:146)
      2 frames
    15. Java Tools
      TreePathScanner.scan
      1. com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:561)
      2. com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:53)
      2 frames
    16. com.google.errorprone
      ErrorProneScannerTransformer.apply
      1. com.google.errorprone.scanner.Scanner.scan(Scanner.java:70)
      2. com.google.errorprone.scanner.ErrorProneScanner.scan(ErrorProneScanner.java:1036)
      3. com.google.errorprone.scanner.ErrorProneScannerTransformer.apply(ErrorProneScannerTransformer.java:45)
      3 frames
    17. @BugPattern annotation
      ErrorProneJavacJavaCompiler.flow
      1. com.google.errorprone.ErrorProneAnalyzer.reportReadyForAnalysis(ErrorProneAnalyzer.java:172)
      2. com.google.errorprone.ErrorProneAnalyzer.finished(ErrorProneAnalyzer.java:115)
      3. com.google.errorprone.ErrorProneJavacJavaCompiler.postFlow(ErrorProneJavacJavaCompiler.java:109)
      4. com.google.errorprone.ErrorProneJavacJavaCompiler.flow(ErrorProneJavacJavaCompiler.java:93)
      4 frames
    18. Java Tools
      Main.compile
      1. com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1247)
      2. com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:858)
      3. com.sun.tools.javac.main.Main.compile(Main.java:253)
      3 frames
    19. @BugPattern annotation
      ErrorProneCompiler.compile
      1. com.google.errorprone.ErrorProneCompiler.run(ErrorProneCompiler.java:253)
      2. com.google.errorprone.ErrorProneCompiler.run(ErrorProneCompiler.java:163)
      3. com.google.errorprone.ErrorProneCompiler.compile(ErrorProneCompiler.java:92)
      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. net.ltgt.gradle
      ErrorProneCompiler.execute
      1. net.ltgt.gradle.errorprone.ErrorProneCompiler.execute(ErrorProneCompiler.java:57)
      2. net.ltgt.gradle.errorprone.ErrorProneCompiler.execute(ErrorProneCompiler.java:25)
      2 frames
    22. org.gradle.api
      JavaCompile.compile
      1. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:101)
      2. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:50)
      3. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:36)
      4. org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:34)
      5. org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)
      6. org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:157)
      7. org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:139)
      8. org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:93)
      8 frames
    23. 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
    24. org.gradle.internal
      JavaMethod.invoke
      1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
      1 frame
    25. Gradle Core
      DefaultGradleLauncher.run
      1. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:244)
      2. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
      3. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:231)
      4. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
      5. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
      6. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
      7. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
      8. org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
      9. org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
      10. org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
      11. org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
      12. org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
      13. org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
      14. org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
      15. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
      16. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
      17. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
      18. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
      19. org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
      20. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
      21. org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
      22. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
      23. org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
      24. org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
      25. org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
      26. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
      27. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
      28. org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
      29. org.gradle.internal.Factories$1.create(Factories.java:22)
      30. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
      31. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
      32. org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
      33. org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
      34. org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
      35. org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
      36. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
      37. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
      38. org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
      39. org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
      39 frames
    26. Gradle Launcher
      RunBuildAction.run
      1. org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
      2. org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
      3. org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
      4. org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
      5. org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
      6. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
      7. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:48)
      8. org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
      9. org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
      10. org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
      10 frames
    27. Gradle Core
      Actions$RunnableActionAdapter.execute
      1. org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
      1 frame
    28. Gradle Launcher
      EntryPoint.run
      1. org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
      2. org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
      3. org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
      4. org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
      5. org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
      6. org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
      7. org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
      8. org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
      9. org.gradle.launcher.Main.doAction(Main.java:33)
      10. org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
      10 frames
    29. 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
    30. Gradle Launcher
      GradleMain.main
      1. org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
      2. org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
      3. org.gradle.launcher.GradleMain.main(GradleMain.java:23)
      3 frames
    31. 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
    32. org.gradle.wrapper
      GradleWrapperMain.main
      1. org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
      2. org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
      3. org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
      3 frames