jersey
  1. jersey
  2. JERSEY-1192

Client#invocation(Link, (Entity)null) does not throw NullPointerException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0-m04
    • Fix Version/s: 2.0-m07, 2.0
    • Component/s: core
    • Labels:
      None

      Description

      The javadoc of Client#invocation(Link, Entity) says:

      javax.ws.rs.client.Client.invocation( Link, Entity ) throws NullPointerException in case argument is null.

      but calling:

      Client client = ClientFactory.newClient();
      URI uri = UriBuilder.fromPath("http://localhost:8080/").build();
      Link link = Link.fromUri(uri).method("POST").build();
      client.invocation(link, null);
      

      throws:

      java.lang.IllegalArgumentException: Entity type incompatible with link produces parameter

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Marek Potociar
              Reporter:
              jan.supol
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours Time Not Required
                2h