We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d64beb commit 21b5004Copy full SHA for 21b5004
spring-ws-core/src/main/java/org/springframework/ws/soap/saaj/SaajSoapEnvelope.java
@@ -51,6 +51,9 @@ public SoapBody getBody() {
51
if (body == null) {
52
try {
53
SOAPBody saajBody = getSaajEnvelope().getBody();
54
+ if (saajBody == null) {
55
+ throw new SaajSoapBodyException("SAAJ SOAP message has no body");
56
+ }
57
if (saajBody.getElementQName().getNamespaceURI()
58
.equals(SoapVersion.SOAP_11.getEnvelopeNamespaceUri())) {
59
body = new SaajSoap11Body(saajBody, langAttributeOnSoap11FaultString);
0 commit comments