java.util.NoSuchElementException: next on empty iterator

grzegorzbalcerek.net | 8 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

    Metody kolekcji

    grzegorzbalcerek.net | 8 months ago
    java.util.NoSuchElementException: next on empty iterator

    Root Cause Analysis

    1. java.util.NoSuchElementException

      next on empty iterator

      at scala.collection.Iterator$$anon$2.next()
    2. Scala
      AbstractTraversable.last
      1. scala.collection.Iterator$$anon$2.next(Iterator.scala:39)
      2. scala.collection.Iterator$$anon$2.next(Iterator.scala:37)
      3. scala.collection.IterableLike$class.head(IterableLike.scala:107)
      4. scala.collection.AbstractIterable.head(Iterable.scala:54)
      5. scala.collection.TraversableLike$class.last(TraversableLike.scala:459)
      6. scala.collection.AbstractTraversable.last(Traversable.scala:104)
      6 frames