SIERRA_NEVADA_C_1
14 years agoOccasional Contributor
NullPointerException on an HttpResponse without an entity (n
The problem is an HttpResponse can have a null entity, and the code from SoapUI 4.0.2 assumes it is not null:
It is in the class: com.eviware.soapui.impl.wsdl.submit.filters.HttpPackagingResponseFilter
if( httpMethod.hasHttpResponse() )
{
responseContentTypeHeader = httpMethod.getHttpResponse().getEntity().getContentType();
}
Where as SoapUI 4.0.1 did not:
Header responseContentTypeHeader = httpMethod.getResponseHeader( "Content-Type");
When getEntity() returns null, the NullPointerExeption occurs.
It is in the class: com.eviware.soapui.impl.wsdl.submit.filters.HttpPackagingResponseFilter
if( httpMethod.hasHttpResponse() )
{
responseContentTypeHeader = httpMethod.getHttpResponse().getEntity().getContentType();
}
Where as SoapUI 4.0.1 did not:
Header responseContentTypeHeader = httpMethod.getResponseHeader( "Content-Type");
When getEntity() returns null, the NullPointerExeption occurs.