Checking for null prior to setting the channelRegistry on the endpoint's handler (short term fix for INT-202).

This commit is contained in:
Mark Fisher
2008-04-21 20:51:38 +00:00
parent d30f3230b0
commit e0563a6173

View File

@@ -146,7 +146,7 @@ public class TargetEndpoint implements MessageEndpoint, BeanNameAware {
}
public void afterPropertiesSet() {
if (this.target instanceof ChannelRegistryAware) {
if (this.target instanceof ChannelRegistryAware && this.channelRegistry != null) {
((ChannelRegistryAware) this.target).setChannelRegistry(this.channelRegistry);
}
if (this.concurrencyPolicy != null && !(this.target instanceof ConcurrentTarget)) {