java-asana icon indicating copy to clipboard operation
java-asana copied to clipboard

Iterator returns hasNext = true for an empty collection

Open prismec opened this issue 8 years ago • 1 comments

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

prismec avatar Feb 08 '17 12:02 prismec

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.

ZktSn0w avatar Jul 26 '23 10:07 ZktSn0w