You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Carlin Rogers (JIRA)" <ji...@apache.org> on 2007/03/06 21:26:24 UTC
[jira] Created: (BEEHIVE-1182) NPE in
ScopedResponseImpl.getFirstHeader()
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.
[jira] Resolved: (BEEHIVE-1182) NPE in
ScopedResponseImpl.getFirstHeader()
Posted by "Carlin Rogers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEEHIVE-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carlin Rogers resolved BEEHIVE-1182.
------------------------------------
Resolution: Fixed
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.
> 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, 1.0.1, 1.0.2
> 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.