OneToOneDecoder now understands null - improve ZlibDecoder
This commit is contained in:
parent
b78d357bad
commit
57c0600b90
@ -135,7 +135,7 @@ public class ZlibDecoder extends OneToOneDecoder {
|
|||||||
if (decompressed.writerIndex() != 0) { // readerIndex is always 0
|
if (decompressed.writerIndex() != 0) { // readerIndex is always 0
|
||||||
return decompressed;
|
return decompressed;
|
||||||
} else {
|
} else {
|
||||||
return ChannelBuffers.EMPTY_BUFFER;
|
return null;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
// Deference the external references explicitly to tell the VM that
|
// Deference the external references explicitly to tell the VM that
|
||||||
|
Loading…
Reference in New Issue
Block a user