SPDY: check if spdyHeadersFrame is null before adding it to out

This commit is contained in:
Jeff Pinner 2013-07-11 23:32:27 -07:00 committed by Norman Maurer
parent 3a4c7c9c93
commit 030d9fd227

View File

@ -285,8 +285,9 @@ public class SpdyFrameDecoder extends ByteToMessageDecoder {
spdyHeadersFrame = null;
headerBlockDecoder.reset();
state = State.READ_COMMON_HEADER;
out.add(frame);
return;
if (frame != null) {
out.add(frame);
}
}
return;