INT-1038, Change assertion to validate if 'ref' element has text (because it is never 'null', but rather "")
This commit is contained in:
@@ -40,7 +40,7 @@ public class MethodInvokingOutboundChannelAdapterParser extends AbstractOutbound
|
||||
consumerRef = BeanDefinitionReaderUtils.registerWithGeneratedName(
|
||||
this.parseConsumer(element, parserContext), parserContext.getRegistry());
|
||||
}
|
||||
Assert.notNull(consumerRef, "Can not determine consumer for outbound-channel-adapter");
|
||||
Assert.hasText(consumerRef, "Can not determine consumer for 'outbound-channel-adapter'");
|
||||
return consumerRef;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user