You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2009/07/05 21:12:14 UTC

[jira] Resolved: (CXF-2330) NullPointerException thrown in HTTPHeadersImpl.getListValues()

     [ https://issues.apache.org/jira/browse/CXF-2330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin resolved CXF-2330.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3
                   2.2.3
         Assignee: Sergey Beryozkin

It was reported last week by Kynan and was fixed on the trunk and 2.2.3 SNAPSHOT

thanks !

> NullPointerException thrown in HTTPHeadersImpl.getListValues()
> --------------------------------------------------------------
>
>                 Key: CXF-2330
>                 URL: https://issues.apache.org/jira/browse/CXF-2330
>             Project: CXF
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 2.2.2
>            Reporter: Andrew Young
>            Assignee: Sergey Beryozkin
>             Fix For: 2.2.3, 2.3
>
>
> Line 132 in HttpHeadersImpl.java throws a NullPointerException if the given header exists, but it's value is null.
> The offending line looks like this:
> String[] ls =  values.get(0).split(",");
> The problem can be averted by changing line 126 from this:
> if (values == null || values.isEmpty()) {
> To this:
> if (values == null || values.isEmpty() || values.get(0) == null) {

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