Fix boundary check in DefaultChannelPipeline.addFirst(..)
- Thanks @normanmaurer
This commit is contained in:
parent
e16c835780
commit
957c04e597
@ -143,7 +143,7 @@ public class DefaultChannelPipeline implements ChannelPipeline {
|
||||
if (handlers == null) {
|
||||
throw new NullPointerException("handlers");
|
||||
}
|
||||
if (handlers[0] == null) {
|
||||
if (handlers.length == 0 || handlers[0] == null) {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user