Add missing validation which results in NPE later
This commit is contained in:
parent
9c1b9492d5
commit
17c0722862
@ -241,6 +241,9 @@ public final class ServerBootstrap extends AbstractBootstrap<ServerBootstrap, Se
|
|||||||
logger.warn("childGroup is not set. Using parentGroup instead.");
|
logger.warn("childGroup is not set. Using parentGroup instead.");
|
||||||
childGroup = group();
|
childGroup = group();
|
||||||
}
|
}
|
||||||
|
if (channelFactory == null) {
|
||||||
|
throw new IllegalStateException("factory not set");
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user