java.lang.NullPointerException

Atlassian JIRA | Luis Miranda | 2 years ago
  1. 0

    When connecting to Google Apps the following error is returned. {panel} Failed to connect to Google Apps Atlassian Cloud was unable to connect your Google Apps domain. {panel} With this stack trace. {code} java.lang.NullPointerException at models.google.DirectoryApi$$anonfun$4.apply(GoogleUsers.scala:160) at models.google.DirectoryApi$$anonfun$4.apply(GoogleUsers.scala:154) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.Iterator$class.foreach(Iterator.scala:727) at scala.collection.AbstractIterator.foreach(Iterator.scala:1157) at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.AbstractTraversable.map(Traversable.scala:105) at models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7$$anonfun$apply$8.apply(GoogleUsers.scala:178) at models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7$$anonfun$apply$8.apply(GoogleUsers.scala:171) at scala.util.Try$.apply(Try.scala:161) at models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7.apply(GoogleUsers.scala:171) at models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7.apply(GoogleUsers.scala:171) at scalaz.EitherTMonad$$anonfun$point$1.apply(EitherT.scala:281) at scalaz.EitherTMonad$$anonfun$point$1.apply(EitherT.scala:281) at scalaz.FreeInstances$$anon$5.point(Free.scala:276) at scalaz.FreeInstances$$anon$5.point(Free.scala:275) at scalaz.EitherTMonad$class.point(EitherT.scala:281) at scalaz.EitherTInstances0$$anon$3.point(EitherT.scala:235) at scalaz.EitherTInstances0$$anon$3.point(EitherT.scala:235) at scalaz.KleisliApplicative$$anonfun$point$1.apply(Kleisli.scala:206) at scalaz.KleisliFunctions$$anon$17.run(Kleisli.scala:160) at scalaz.Kleisli$$anonfun$map$1.apply(Kleisli.scala:38) at scalaz.KleisliFunctions$$anon$17.run(Kleisli.scala:160) at scalaz.Kleisli$$anonfun$flatMap$1$$anonfun$apply$2.apply(Kleisli.scala:47) at scalaz.EitherT$$anonfun$flatMap$1$$anonfun$apply$4.apply(EitherT.scala:93) at scalaz.$bslash$div$class.fold(Either.scala:40) at scalaz.$bslash$div$minus.fold(Either.scala:283) at scalaz.EitherT$$anonfun$flatMap$1.apply(EitherT.scala:93) at scalaz.EitherT$$anonfun$flatMap$1.apply(EitherT.scala:93) at scalaz.Free$$anonfun$resume$2.apply(Free.scala:83) at scalaz.Free$$anonfun$resume$2.apply(Free.scala:83) at scalaz.Free.resume(Free.scala:81) at scalaz.Free.scalaz$Free$$runM2$1(Free.scala:128) at scalaz.Free$$anonfun$scalaz$Free$$runM2$1$1.apply(Free.scala:129) at scalaz.Free$$anonfun$scalaz$Free$$runM2$1$1.apply(Free.scala:129) at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251) at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:67) at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:82) at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59) at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59) at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72) at akka.dispatch.BatchingExecutor$Batch.run(BatchingExecutor.scala:58) at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:42) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) {code} This is caused by the Google directory API returning null for {{com.google.api.services.admin.directory.model.User.getName()}}, which the Google Apps code does not handle safely.

    Atlassian JIRA | 2 years ago | Luis Miranda
    java.lang.NullPointerException
  2. 0

    When connecting to Google Apps the following error is returned. {panel} Failed to connect to Google Apps Atlassian Cloud was unable to connect your Google Apps domain. {panel} With this stack trace. {code} java.lang.NullPointerException at models.google.DirectoryApi$$anonfun$4.apply(GoogleUsers.scala:160) at models.google.DirectoryApi$$anonfun$4.apply(GoogleUsers.scala:154) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.Iterator$class.foreach(Iterator.scala:727) at scala.collection.AbstractIterator.foreach(Iterator.scala:1157) at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.AbstractTraversable.map(Traversable.scala:105) at models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7$$anonfun$apply$8.apply(GoogleUsers.scala:178) at models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7$$anonfun$apply$8.apply(GoogleUsers.scala:171) at scala.util.Try$.apply(Try.scala:161) at models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7.apply(GoogleUsers.scala:171) at models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7.apply(GoogleUsers.scala:171) at scalaz.EitherTMonad$$anonfun$point$1.apply(EitherT.scala:281) at scalaz.EitherTMonad$$anonfun$point$1.apply(EitherT.scala:281) at scalaz.FreeInstances$$anon$5.point(Free.scala:276) at scalaz.FreeInstances$$anon$5.point(Free.scala:275) at scalaz.EitherTMonad$class.point(EitherT.scala:281) at scalaz.EitherTInstances0$$anon$3.point(EitherT.scala:235) at scalaz.EitherTInstances0$$anon$3.point(EitherT.scala:235) at scalaz.KleisliApplicative$$anonfun$point$1.apply(Kleisli.scala:206) at scalaz.KleisliFunctions$$anon$17.run(Kleisli.scala:160) at scalaz.Kleisli$$anonfun$map$1.apply(Kleisli.scala:38) at scalaz.KleisliFunctions$$anon$17.run(Kleisli.scala:160) at scalaz.Kleisli$$anonfun$flatMap$1$$anonfun$apply$2.apply(Kleisli.scala:47) at scalaz.EitherT$$anonfun$flatMap$1$$anonfun$apply$4.apply(EitherT.scala:93) at scalaz.$bslash$div$class.fold(Either.scala:40) at scalaz.$bslash$div$minus.fold(Either.scala:283) at scalaz.EitherT$$anonfun$flatMap$1.apply(EitherT.scala:93) at scalaz.EitherT$$anonfun$flatMap$1.apply(EitherT.scala:93) at scalaz.Free$$anonfun$resume$2.apply(Free.scala:83) at scalaz.Free$$anonfun$resume$2.apply(Free.scala:83) at scalaz.Free.resume(Free.scala:81) at scalaz.Free.scalaz$Free$$runM2$1(Free.scala:128) at scalaz.Free$$anonfun$scalaz$Free$$runM2$1$1.apply(Free.scala:129) at scalaz.Free$$anonfun$scalaz$Free$$runM2$1$1.apply(Free.scala:129) at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251) at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:67) at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:82) at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59) at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59) at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72) at akka.dispatch.BatchingExecutor$Batch.run(BatchingExecutor.scala:58) at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:42) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) {code} This is caused by the Google directory API returning null for {{com.google.api.services.admin.directory.model.User.getName()}}, which the Google Apps code does not handle safely.

    Atlassian JIRA | 2 years ago | Luis Miranda
    java.lang.NullPointerException
  3. 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
  4. 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 models.google.DirectoryApi$$anonfun$4.apply()
    2. models.google
      DirectoryApi$$anonfun$4.apply
      1. models.google.DirectoryApi$$anonfun$4.apply(GoogleUsers.scala:160)
      2. models.google.DirectoryApi$$anonfun$4.apply(GoogleUsers.scala:154)
      2 frames
    3. Scala
      AbstractTraversable.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      3. scala.collection.Iterator$class.foreach(Iterator.scala:727)
      4. scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
      5. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      6. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      7. scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
      8. scala.collection.AbstractTraversable.map(Traversable.scala:105)
      8 frames
    4. models.google
      DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7$$anonfun$apply$8.apply
      1. models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7$$anonfun$apply$8.apply(GoogleUsers.scala:178)
      2. models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7$$anonfun$apply$8.apply(GoogleUsers.scala:171)
      2 frames
    5. Scala
      Try$.apply
      1. scala.util.Try$.apply(Try.scala:161)
      1 frame
    6. models.google
      DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7.apply
      1. models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7.apply(GoogleUsers.scala:171)
      2. models.google.DirectoryApi$$anonfun$fetchPage$1$1$$anonfun$apply$7.apply(GoogleUsers.scala:171)
      2 frames
    7. Scalaz
      Free$$anonfun$scalaz$Free$$runM2$1$1.apply
      1. scalaz.EitherTMonad$$anonfun$point$1.apply(EitherT.scala:281)
      2. scalaz.EitherTMonad$$anonfun$point$1.apply(EitherT.scala:281)
      3. scalaz.FreeInstances$$anon$5.point(Free.scala:276)
      4. scalaz.FreeInstances$$anon$5.point(Free.scala:275)
      5. scalaz.EitherTMonad$class.point(EitherT.scala:281)
      6. scalaz.EitherTInstances0$$anon$3.point(EitherT.scala:235)
      7. scalaz.EitherTInstances0$$anon$3.point(EitherT.scala:235)
      8. scalaz.KleisliApplicative$$anonfun$point$1.apply(Kleisli.scala:206)
      9. scalaz.KleisliFunctions$$anon$17.run(Kleisli.scala:160)
      10. scalaz.Kleisli$$anonfun$map$1.apply(Kleisli.scala:38)
      11. scalaz.KleisliFunctions$$anon$17.run(Kleisli.scala:160)
      12. scalaz.Kleisli$$anonfun$flatMap$1$$anonfun$apply$2.apply(Kleisli.scala:47)
      13. scalaz.EitherT$$anonfun$flatMap$1$$anonfun$apply$4.apply(EitherT.scala:93)
      14. scalaz.$bslash$div$class.fold(Either.scala:40)
      15. scalaz.$bslash$div$minus.fold(Either.scala:283)
      16. scalaz.EitherT$$anonfun$flatMap$1.apply(EitherT.scala:93)
      17. scalaz.EitherT$$anonfun$flatMap$1.apply(EitherT.scala:93)
      18. scalaz.Free$$anonfun$resume$2.apply(Free.scala:83)
      19. scalaz.Free$$anonfun$resume$2.apply(Free.scala:83)
      20. scalaz.Free.resume(Free.scala:81)
      21. scalaz.Free.scalaz$Free$$runM2$1(Free.scala:128)
      22. scalaz.Free$$anonfun$scalaz$Free$$runM2$1$1.apply(Free.scala:129)
      23. scalaz.Free$$anonfun$scalaz$Free$$runM2$1$1.apply(Free.scala:129)
      23 frames
    8. Scala
      CallbackRunnable.run
      1. scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251)
      2. scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249)
      3. scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
      3 frames
    9. Akka Actor
      BatchingExecutor$Batch$$anonfun$run$1.apply
      1. akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:67)
      2. akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:82)
      3. akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59)
      4. akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59)
      4 frames
    10. Scala
      BlockContext$.withBlockContext
      1. scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)
      1 frame
    11. Akka Actor
      ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec
      1. akka.dispatch.BatchingExecutor$Batch.run(BatchingExecutor.scala:58)
      2. akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:42)
      3. akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)
      3 frames
    12. Scala
      ForkJoinWorkerThread.run
      1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
      2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
      3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
      4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
      4 frames