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

NPE in ScopedResponseImpl.getFirstHeader()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0, 1.0.1, 1.0.2
    • Fix Version/s: V.Next
    • Component/s: NetUI
    • Labels:
      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

            • Assignee:
              crogers Carlin Rogers
              Reporter:
              crogers Carlin Rogers
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: