Resolved NullPointerException
When the payload is null, the PayloadRootSmartSoapEndpointInterceptor does not throw an exception anymore. Issue: SWS-857
This commit is contained in:
@@ -59,7 +59,7 @@ public class PayloadRootSmartSoapEndpointInterceptor extends DelegatingSmartSoap
|
||||
protected boolean shouldIntercept(WebServiceMessage request, Object endpoint) {
|
||||
try {
|
||||
QName payloadRootName = PayloadRootUtils.getPayloadRootQName(request.getPayloadSource(), transformerHelper);
|
||||
if (!namespaceUri.equals(payloadRootName.getNamespaceURI())) {
|
||||
if (payloadRootName == null || !namespaceUri.equals(payloadRootName.getNamespaceURI())) {
|
||||
return false;
|
||||
}
|
||||
return !StringUtils.hasLength(localPart) || localPart.equals(payloadRootName.getLocalPart());
|
||||
|
||||
Reference in New Issue
Block a user