java.util.NoSuchElementException: head of empty list

GitHub | pfn | 6 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

    GitHub comment 283#241199889

    GitHub | 6 months ago | pfn
    java.util.NoSuchElementException: head of empty list
  2. 0

    java.util.NoSuchElementException: head of empty list

    GitHub | 6 months ago | relrod
    java.util.NoSuchElementException: head of empty list
  3. 0

    Play-scala-mongodb throws exception and quits when accessing /db

    GitHub | 2 years ago | aschneider-techempower
    java.util.NoSuchElementException: head of empty list
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Doesn't work with -Yno-generic-signatures

    GitHub | 3 years ago | japgolly
    org.json4s.package$MappingException: unknown error
  6. 0

    Can't add custom serializer for collection class

    GitHub | 3 years ago | danarmak
    org.json4s.package$MappingException: unknown error

  1. Handemelindo 1 times, last 2 months ago
  2. jokester 2 times, last 2 months ago
  3. harshg 1 times, last 11 months ago
2 unregistered visitors
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.util.NoSuchElementException

    head of empty list

    at scala.collection.immutable.Nil$.head()
  2. Scala
    Nil$.head
    1. scala.collection.immutable.Nil$.head(List.scala:337)
    2. scala.collection.immutable.Nil$.head(List.scala:334)
    2 frames
  3. Android Platform
    Tasks$$anonfun$100$$anonfun$apply$111.apply
    1. android.Dependencies$AarLibrary.moduleID$lzycompute(dependencies.scala:89)
    2. android.Dependencies$AarLibrary.moduleID(dependencies.scala:87)
    3. android.Tasks$$anonfun$100$$anonfun$apply$111.apply(tasks.scala:1469)
    4. android.Tasks$$anonfun$100$$anonfun$apply$111.apply(tasks.scala:1468)
    4 frames
  4. 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.immutable.List.foreach(List.scala:318)
    4. scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
    5. scala.collection.AbstractTraversable.map(Traversable.scala:105)
    5 frames
  5. Android Platform
    Tasks$$anonfun$100.apply
    1. android.Tasks$$anonfun$100.apply(tasks.scala:1468)
    2. android.Tasks$$anonfun$100.apply(tasks.scala:1454)
    2 frames
  6. Scala
    Function1$$anonfun$compose$1.apply
    1. scala.Function6$$anonfun$tupled$1.apply(Function6.scala:35)
    2. scala.Function6$$anonfun$tupled$1.apply(Function6.scala:34)
    3. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    3 frames
  7. SBT
    $tilde$greater$$anonfun$$u2219$1.apply
    1. sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
    1 frame
  8. sbt Task system
    Transform$$anon$4.work
    1. sbt.std.Transform$$anon$4.work(System.scala:63)
    1 frame
  9. 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
  10. 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