jersey
  1. jersey
  2. JERSEY-1283

HttpHeaders#getLength throws a NPE

    Details

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

      Description

      On a resource method

      	@GET
      	@Path("length")
      	public String headerLength(@Context HttpHeaders headers) {
      		return String.valueOf(headers.getLength());
      	}
      

      the NPE is thrown

      Caused by: java.lang.NullPointerException
      at org.glassfish.jersey.message.internal.InboundMessageContext.getLength(InboundMessageContext.java:496)

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour
              1h