修复JsonConvert的""空字符串转换对象抛异常的BUG

This commit is contained in:
Redkale
2018-11-28 14:23:10 +08:00
parent 676c1b5d21
commit 045b7db1af

View File

@@ -217,6 +217,7 @@ public class JsonReader extends Reader {
*/
@Override
public int readArrayB(DeMember member, byte[] typevals, Decodeable componentDecoder) {
if (this.position <= this.text.length) return SIGN_NULL;
char ch = this.text[++this.position];
if (ch == '[') return SIGN_NOLENGTH;
if (ch == '{') return SIGN_NOLENGTH;