Beehive
  1. Beehive
  2. BEEHIVE-1182

NPE in ScopedResponseImpl.getFirstHeader()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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.

        Activity

        Hide
        Carlin Rogers added a comment -

        Fixed with SVN revision 515308. Also added a new JUnit test for ScopedResponse that includes testing getFirstHeader() using a name of a header that does not exist.

        Show
        Carlin Rogers added a comment - Fixed with SVN revision 515308. Also added a new JUnit test for ScopedResponse that includes testing getFirstHeader() using a name of a header that does not exist.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development