Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1328

NewCookieHeaderDelegate throws if NewCookie value is null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.17.Final
    • 3.0.16.Final
    • None
    • None
    • Hide

      Use an empty-string as the value instead of null.

      Show
      Use an empty-string as the value instead of null .

    Description

      Almost everywhere (constructors, equals(), hashCode(), CookieHeaderDelegate) it's OK to have a null value for a NewCookie (or Cookie), but NewCookieHeaderDelegate throws a NullPointerException in this case.

      This is due to eventually calling MediaTypeHeaderDelegate.quoted() with a null value, where that methods calls getCharArray() on its argument without null-check.

      Attachments

        Issue Links

          Activity

            People

              rsigal@redhat.com Ronald Sigal
              t.broyer Thomas Broyer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: