Re: NoSuchElementException in PropertyMapIterator

2016-12-05 Thread Ahmed Ashour
2:22 PM Subject: Re: NoSuchElementException in PropertyMapIterator Hi Ahmed, yes, this is a bug, thanks for reporting it. Out of curiosity, , since it is not an exported API class: How are you using PropertyMap? Hannes

Re: NoSuchElementException in PropertyMapIterator

2016-12-05 Thread Hannes Wallnöfer
Hi Ahmed, yes, this is a bug, thanks for reporting it. Out of curiosity, , since it is not an exported API class: How are you using PropertyMap? Hannes > Am 03.12.2016 um 10:00 schrieb Ahmed Ashour : > > Hi all, > I believe there is a bug in next() of PropertyMap.PropertyMapIterator, where

NoSuchElementException in PropertyMapIterator

2016-12-03 Thread Ahmed Ashour
Hi all, I believe there is a bug in next() of PropertyMap.PropertyMapIterator, where 'iter' may not have more elements. The line should be changed from "property = iter.next();" to "property = iter.hasNext() ? iter.next() : null;". This checking is done in the constructor and in skipNotEnumerable