NPE in ScopedResponseImpl.getFirstHeader()
------------------------------------------

                 Key: BEEHIVE-1182
                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1182
             Project: Beehive
          Issue Type: Bug
          Components: NetUI
    Affects Versions: 1.0.2, 1.0.1, 1.0
            Reporter: Carlin Rogers
         Assigned To: Carlin Rogers
             Fix For: V.Next


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to