java.util.NoSuchElementException: Cannot access index 1 when size is 0. Remember to check hasNext() before using next().

GitHub | biagionicp | 8 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

    GitHub comment 2660#247835522

    GitHub | 8 months ago | biagionicp
    java.util.NoSuchElementException: Cannot access index 1 when size is 0. Remember to check hasNext() before using next().

    Root Cause Analysis

    1. java.util.NoSuchElementException

      Cannot access index 1 when size is 0. Remember to check hasNext() before using next().

      at io.realm.RealmList$RealmItr.next()
    2. io.realm
      RealmList$RealmItr.next
      1. io.realm.RealmList$RealmItr.next(RealmList.java:818)
      2. io.realm.RealmList$RealmItr.next(RealmList.java:775)
      2 frames