Skip to content

NullPointerException in StubServer.getLocalPort #12

@rickb777

Description

@rickb777

The documentation does not explain that it is necessary to call StubServer.start() before StubServer.getLocalPort()

A NullpointerException arises if these are in the wrong order (line 197).

It would be nicer to throw an IllegalStateException intead, explaining what's wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions