Some bug fixes

This commit is contained in:
Ziver Koc 2015-11-20 16:51:19 +01:00
parent 4a027fab5f
commit 52c6f7e01c

View file

@ -162,10 +162,12 @@ public class JSONObjectInputStream extends InputStream implements ObjectInput, C
Map map = (Map)type.newInstance();
for(Iterator<String> it=json.keyIterator(); it.hasNext();){
String subKey = it.next();
if(json.get(subKey) != null) {
map.put(
subKey,
readType((genType.length >= 2 ? genType[1] : null), null, subKey, json.get(subKey)));
}
}
return map;
}
// Field is a new Object