java-asana
java-asana copied to clipboard
Iterator returns hasNext = true for an empty collection
Steps to reproduce: Request an empty list (e.g. task of an empty project)
def tasks = client.tasks.findByProject(projectId).iterator()
assert tasks.hasNext() == true // should return false
tasks.next() // throws a NoSuchElementException
┆Issue is synchronized with this Asana task
was this ever resolved? for me i have a simmilar issue, my iterator has items inside, the hasnext does return true but when accessing the first element i get the same exception. In plain Java.