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


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.

Reply via email to