Skip to content

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

@aliakb

Description

@aliakb

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions