Add null check when creating Hashtable for XML-RPC struct.
This commit is contained in:
parent
83378773e9
commit
5e8b1aebad
1 changed files with 4 additions and 1 deletions
|
@ -466,7 +466,10 @@ public final class RhinoCore {
|
|||
for (int i=0; i<ids.length; i++) {
|
||||
if (ids[i] instanceof String) {
|
||||
String key = (String) ids[i];
|
||||
ht.put(key, processXmlRpcResponse(no.get(key, no)));
|
||||
Object o = no.get(key, no);
|
||||
if (o != null) {
|
||||
ht.put(key, processXmlRpcResponse(o));
|
||||
}
|
||||
}
|
||||
}
|
||||
what = ht;
|
||||
|
|
Loading…
Add table
Reference in a new issue