diff --git a/src/main/java/org/jboss/netty/channel/StaticChannelPipeline.java b/src/main/java/org/jboss/netty/channel/StaticChannelPipeline.java index 0cd709161e..6fa25ec87a 100644 --- a/src/main/java/org/jboss/netty/channel/StaticChannelPipeline.java +++ b/src/main/java/org/jboss/netty/channel/StaticChannelPipeline.java @@ -70,6 +70,7 @@ public class StaticChannelPipeline implements ChannelPipeline { for (int i = 0; i < contexts.length; i ++) { ChannelHandler h = handlers[i]; if (h == null) { + // FIXME: Should just break the loop on null throw new NullPointerException("handlers[" + i + ']'); }