Checking defaultOutputChannel for null

This commit is contained in:
Mark Fisher
2007-12-21 19:27:01 +00:00
parent 184a91e3e3
commit 3ad89f1074

View File

@@ -128,7 +128,10 @@ public class GenericMessageEndpoint implements MessageEndpoint {
if (replyChannelName != null && replyChannelName.trim().length() > 0) {
return this.channelRegistry.lookupChannel(replyChannelName);
}
return this.channelRegistry.lookupChannel(this.defaultOutputChannelName);
if (this.defaultOutputChannelName != null) {
return this.channelRegistry.lookupChannel(this.defaultOutputChannelName);
}
return null;
}
}