Returning from registerWithDispatcher(..) if dispatcher is null (INT-164).

This commit is contained in:
Mark Fisher
2008-04-02 11:57:31 +00:00
parent 6e845339ad
commit 2ab12a9315

View File

@@ -368,6 +368,7 @@ public class MessageBus implements ChannelRegistry, EndpointRegistry, Applicatio
if (logger.isWarnEnabled()) {
logger.warn("no dispatcher available for channel '" + channel.getName() + "', be sure to register the channel");
}
return;
}
dispatcher.addHandler(handler, schedule);
if (this.isRunning() && !dispatcher.isRunning()) {