Raphael Jolivet created CXF-6080:
------------------------------------
Summary: Headers.logProtocolHeaders raise NPE on null header value
Key: CXF-6080
URL: https://issues.apache.org/jira/browse/CXF-6080
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 3.0.2
Reporter: Raphael Jolivet
Priority: Minor
We have moved to CXF3.0.2 recently.
We encounter a NPE when using CXf as client and one
header has null value.
This was the case before (null header value) and was working fine.
A null check in Headers.java:280 would fix the issue.
Caused by: java.lang.NullPointerException
at
org.apache.cxf.transport.http.Headers.logProtocolHeaders(Headers.java:280)
[org-apache-cxf-cxf-rt-transports-http-3.0.2.jar:3.0.2]
at
org.apache.cxf.transport.http.Headers.setProtocolHeadersInConnection(Headers.java:298)
[org-apache-cxf-cxf-rt-transports-http-3.0.2.jar:3.0.2]
at
org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setProtocolHeaders(URLConnectionHTTPConduit.java:213)
[org-apache-cxf-cxf-rt-transports-http-3.0.2.jar:3.0.2
]
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1279)
[org-apache-cxf-cxf-rt-transports-http-3.0.2.jar:3.0.2]
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1319)
[org-apache-cxf-cxf-rt-transports-http-3.0.2.jar:3.0.2]
... 49 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)