If |counterIter.hasNext()| evaluates to false, we'll crash when counter is dereferenced.
How can hasNext be false there in the first iteration (counter == 0), given that getCounters always puts at least one counter in counters if it returns failure?
(In reply to comment #1) s/failure/success/
It can't. Sorry.
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.