Add missing validation which results in NPE later

This commit is contained in:
Trustin Lee 2014-01-13 23:29:41 +09:00
parent 9c1b9492d5
commit 17c0722862

View File

@ -241,6 +241,9 @@ public final class ServerBootstrap extends AbstractBootstrap<ServerBootstrap, Se
logger.warn("childGroup is not set. Using parentGroup instead.");
childGroup = group();
}
if (channelFactory == null) {
throw new IllegalStateException("factory not set");
}
return this;
}