fixed a potential NPE

This commit is contained in:
Josh Long
2010-08-17 23:23:06 +00:00
parent 6766db3f37
commit bacbee1588

View File

@@ -160,7 +160,7 @@ public class ConsumerEndpointFactoryBean
if (channel instanceof SubscribableChannel) {
Assert.isNull(this.pollerMetadata, "A poller should not be specified for endpoint '" + this.beanName
+ "', since '" + this.inputChannel + "' is a SubscribableChannel (not pollable).");
+ "', since '" + channel + "' is a SubscribableChannel (not pollable).");
this.endpoint = new EventDrivenConsumer((SubscribableChannel) channel, this.handler);
}
else if (channel instanceof PollableChannel) {