jersey
  1. jersey
  2. JERSEY-1453

ResponseBuilder#allow((Set)null) throws NPE

    Details

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

      Description

      javadoc says:

      if null any existing allowed method list will be removed.

      But

      RuntimeDelegate.getInstance().createResponseBuilder().allow((Set<String>)null).build();
      

      result in

      java.lang.NullPointerException
      at org.glassfish.jersey.message.internal.OutboundJaxrsResponse$Builder.allow(OutboundJaxrsResponse.java:517)

        Activity

        Hide
        jan.supol added a comment -

        The same for allow(String...)

        Show
        jan.supol added a comment - The same for allow(String...)
        Hide
        jan.supol added a comment -

        still does not work for #allow((String[])null)

        Show
        jan.supol added a comment - still does not work for #allow((String[])null)

          People

          • Assignee:
            Pavel Bucek
            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 - 1 hour, 31 minutes Time Not Required
              1h 31m