state is never null
@@ -169,7 +169,7 @@ public int decode(byte[] b, int off, int len) throws IOException {
}
int available() throws IOException {
- return state == null ? 0 : state.available();
+ return state.available();
}
private static abstract class DecoderState {
