OneToOneDecoder now understands null - improve ZlibDecoder

This commit is contained in:
Trustin Lee 2009-10-21 05:07:37 +00:00
parent b78d357bad
commit 57c0600b90

View File

@ -135,7 +135,7 @@ public class ZlibDecoder extends OneToOneDecoder {
if (decompressed.writerIndex() != 0) { // readerIndex is always 0
return decompressed;
} else {
return ChannelBuffers.EMPTY_BUFFER;
return null;
}
} finally {
// Deference the external references explicitly to tell the VM that