Checking for null prior to setting the channelRegistry on the endpoint's handler (short term fix for INT-202).
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user