Remove 0 size check

This commit is contained in:
TheMode 2021-04-06 06:43:16 +02:00
parent 720c986cea
commit 017bbf8a60

View File

@ -106,8 +106,6 @@ public class BinaryReader extends InputStream {
*/
public String readSizedString(int maxLength) {
final int length = readVarInt();
Check.stateCondition(length <= 0,
"Negative string size received");
Check.stateCondition(!buffer.isReadable(length),
"Trying to read a string that is too long (wanted {0}, only have {1})",
length,