Check for null when converting arguments in invoke().
This commit is contained in:
parent
6ecee221e7
commit
0667d9d091
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ public final class RhinoEngine implements ScriptingEngine {
|
|||
// XML-RPC requires special argument conversion
|
||||
if (xmlrpc) {
|
||||
args[i] = core.processXmlRpcArgument (args[i]);
|
||||
} else {
|
||||
} else if (args[i] != null) {
|
||||
args[i] = context.toObject(args[i], global);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue