Skip to content

The java.util.NoSuchElementException occurs in the constructor of ResponseHandlerImpl. #35

@Memory-of-Snow

Description

@Memory-of-Snow

Describe the bug
The java.util.NoSuchElementException occurs in the constructor of ResponseHandlerImpl.

To Reproduce

  1. Run NostrExamples.
    2.An exception occurs on the line 68 "private final static Client CLIENT = Client.getInstance(RELAYS);"

Expected behavior
The exception does not occur.

Additional context
Is it correct to have the expression "filter(ch -> !ch.getClass().isAnnotationPresent(DefaultHandler.class))" inside the constructor of ResponseHandlerImpl? Shouldn't it be "filter(ch -> ch.getClass().isAnnotationPresent(DefaultHandler.class))" instead?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions