-
Bug
-
Resolution: Done
-
Minor
-
3.0.13.Final
We use ClientRequestFilter to add extra header value to the request. But didn't check whether the value is null or not. When adding a null value to the header, the REST client will result in
Caused by: java.lang.NullPointerException at org.jboss.resteasy.spi.ResteasyProviderFactory.toHeaderString(ResteasyProviderFactory.java:1297) at org.jboss.resteasy.client.jaxrs.internal.ClientConfiguration.toHeaderString(ClientConfiguration.java:77) at org.jboss.resteasy.client.jaxrs.internal.ClientRequestHeaders.asMap(ClientRequestHeaders.java:196) at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.commitHeaders(ApacheHttpClient4Engine.java:441) at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.loadHttpMethod(ApacheHttpClient4Engine.java:435) at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:281) ... 9 more