Some bug fixes
This commit is contained in:
parent
4a027fab5f
commit
52c6f7e01c
1 changed files with 5 additions and 3 deletions
|
|
@ -162,9 +162,11 @@ 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();
|
||||
map.put(
|
||||
subKey,
|
||||
readType((genType.length>=2? genType[1] : null), null, subKey, json.get(subKey)));
|
||||
if(json.get(subKey) != null) {
|
||||
map.put(
|
||||
subKey,
|
||||
readType((genType.length >= 2 ? genType[1] : null), null, subKey, json.get(subKey)));
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue