From a7247d2ce332032b8e7aaa73798b93bce0084f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=91=E5=99=A8=E8=BF=91?= Date: Fri, 18 Dec 2020 14:06:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dvalue=E4=B8=BAnull=EF=BC=8C?= =?UTF-8?q?=E7=BB=88=E6=AD=A2=E8=A7=A3=E6=9E=90=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/github/yezhihao/protostar/converter/MapConverter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/io/github/yezhihao/protostar/converter/MapConverter.java b/src/main/java/io/github/yezhihao/protostar/converter/MapConverter.java index 6ea9aab..9a83bba 100644 --- a/src/main/java/io/github/yezhihao/protostar/converter/MapConverter.java +++ b/src/main/java/io/github/yezhihao/protostar/converter/MapConverter.java @@ -1,7 +1,7 @@ package io.github.yezhihao.protostar.converter; -import io.netty.buffer.ByteBuf; import io.github.yezhihao.protostar.util.ByteBufUtils; +import io.netty.buffer.ByteBuf; import java.util.Map; import java.util.TreeMap; @@ -27,7 +27,6 @@ public abstract class MapConverter implements Converter> { K id = readKey(input); int len = ByteBufUtils.readInt(input, valueSize()); Object value = convert(id, input.readSlice(len)); - if (value == null) break; map.put(id, (V) value); } while (input.isReadable()); return map;