ObjectEncoder should allow zero estimated length as we did in DynamicChannelBuffer
This commit is contained in:
parent
6460f2a70f
commit
c76451b874
@ -53,7 +53,7 @@ public class ObjectEncoder implements ChannelDownstreamHandler {
|
||||
}
|
||||
|
||||
public ObjectEncoder(int estimatedLength) {
|
||||
if (estimatedLength <= 0) {
|
||||
if (estimatedLength < 0) {
|
||||
throw new IllegalArgumentException(
|
||||
"estimatedLength: " + estimatedLength);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user