avoid NPE occuring when handler chain contains a SoapHandler and empty message is received
@@ -254,6 +254,7 @@ public class SOAPHandlerInterceptor extends
Exchange exch = message.getExchange();
setupBindingOperationInfo(exch, sm);
SOAPMessage msg = sm.getMessage();
+ if (msg != null) {
try {
List<SOAPElement> params = new ArrayList<>();
message.put(MessageContext.REFERENCE_PARAMETERS, params);
@@ -281,7 +282,7 @@ public class SOAPHandlerInterceptor extends
} catch (SOAPException e) {
throw new Fault(e);
}
-
+ }
return sm;
}
