jersey
  1. jersey
  2. JERSEY-1408

ValidationException((Status) null) throw NPE instead of IllegalArgumentException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-m07
    • Fix Version/s: 2.0-m08, 2.0
    • Component/s: core
    • Labels:
      None

      Description

      Javadoc says:

      public ValidationException(Response.Status status)
      throws IllegalArgumentException
      IllegalArgumentException - if status is null

      but

      new ValidationException((Status) null)
      

      throws

      ERROR: Exception at:
      ERROR: java.lang.NullPointerException: Response status must not be 'null'
      at org.glassfish.jersey.message.internal.OutboundJaxrsResponse$Builder.status(OutboundJaxrsResponse.java:286)
      at javax.ws.rs.core.Response.status(Response.java:568)
      at javax.ws.rs.core.Response.status(Response.java:579)
      at javax.ws.rs.WebApplicationException.<init>(WebApplicationException.java:143)
      at javax.ws.rs.WebApplicationException.<init>(WebApplicationException.java:95)
      at javax.ws.rs.ValidationException.<init>(ValidationException.java:115)

        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 - 30 minutes Time Not Required
              30m