Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1182

NPE in ScopedResponseImpl.getFirstHeader()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0, 1.0.1, 1.0.2
    • V.Next
    • NetUI
    • None

    Description

      Passing a name of a header that does not exist in to the getFirstHeader() method implemented in ScopedResponseImpl will throw a NullPointerException.

      Looks like ScopedResponseImpl.getFirstHeader() checks to see if the List of headers for a given name is empty but does not first check that the List is not null.

      Found this while creating a junit test for ScopedResponse.

      Attachments

        Activity

          People

            crogers Howard Carlin Rogers
            crogers Howard Carlin Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: