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();
|
Map map = (Map)type.newInstance();
|
||||||
for(Iterator<String> it=json.keyIterator(); it.hasNext();){
|
for(Iterator<String> it=json.keyIterator(); it.hasNext();){
|
||||||
String subKey = it.next();
|
String subKey = it.next();
|
||||||
map.put(
|
if(json.get(subKey) != null) {
|
||||||
subKey,
|
map.put(
|
||||||
readType((genType.length>=2? genType[1] : null), null, subKey, json.get(subKey)));
|
subKey,
|
||||||
|
readType((genType.length >= 2 ? genType[1] : null), null, subKey, json.get(subKey)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue