java.util.NoSuchElementException: next on empty iterator

grzegorzbalcerek.net | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Metody kolekcji

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