Add null check when creating Hashtable for XML-RPC struct.

This commit is contained in:
hns 2003-07-23 13:11:19 +00:00
parent 83378773e9
commit 5e8b1aebad

View file

@ -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;