SWS-566 - DelegatingSoapEndpointMapping produce NPE

This commit is contained in:
Arjen Poutsma
2009-11-10 14:50:15 +00:00
parent 032d8daac9
commit a98a7a903c

View File

@@ -76,8 +76,13 @@ public class DelegatingSoapEndpointMapping implements InitializingBean, SoapEndp
*/
public EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception {
EndpointInvocationChain delegateChain = delegate.getEndpoint(messageContext);
return new SoapEndpointInvocationChain(delegateChain.getEndpoint(), delegateChain.getInterceptors(),
actorsOrRoles, isUltimateReceiver);
if (delegateChain != null) {
return new SoapEndpointInvocationChain(delegateChain.getEndpoint(), delegateChain.getInterceptors(),
actorsOrRoles, isUltimateReceiver);
}
else {
return null;
}
}
public void afterPropertiesSet() throws Exception {