Skip to content

NullPointerException in StubServer.getLocalPort #12

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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