Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4712

NewCookieHeaderDelegate throws if NewCookie value is null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.1.CR1, 7.0.1.GA
    • None
    • REST
    • None
    • Hide

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

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

    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:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: