From ed851417bde5df14ea55d2beaf302c936c0f3c06 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Thu, 18 Mar 2010 22:08:16 +0000 Subject: [PATCH] INT-1038, Change assertion to validate if 'ref' element has text (because it is never 'null', but rather "") --- .../config/xml/MethodInvokingOutboundChannelAdapterParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/config/xml/MethodInvokingOutboundChannelAdapterParser.java b/org.springframework.integration/src/main/java/org/springframework/integration/config/xml/MethodInvokingOutboundChannelAdapterParser.java index dc82e05fa9..223db59448 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/config/xml/MethodInvokingOutboundChannelAdapterParser.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/config/xml/MethodInvokingOutboundChannelAdapterParser.java @@ -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; }