Enumerator.peek throws NullPointerException after the last item (1.7.8) #1299

Closed
aliakb opened this Issue Dec 4, 2013 · 0 comments

Projects

None yet

3 participants

@aliakb
aliakb commented Dec 4, 2013

e = 2.times
e.next
e.next
e.peek

The last statement should throw StopIterationException, but it throws java.lang.NullPointerException instead.

@lucasallan lucasallan closed this Jun 8, 2014
@enebo enebo added this to the JRuby 1.7.13 milestone Jun 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment