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

This commit is contained in:
Redkale
2018-11-28 14:22:00 +08:00
parent e4319246b8
commit 676c1b5d21

View File

@@ -168,6 +168,7 @@ public class JsonReader extends Reader {
@Override
public String readObjectB(final Class clazz) {
this.fieldIndex = 0; //必须要重置为0
if (this.position <= this.text.length) return null;
char ch = this.text[++this.position];
if (ch == '{') return "";
if (ch <= ' ') {