Handle case where global variable is null.
This commit is contained in:
parent
ac0fc677a5
commit
3b2a106503
1 changed files with 3 additions and 1 deletions
|
@ -204,7 +204,9 @@ public class RhinoEngine implements ScriptingEngine {
|
||||||
|
|
||||||
// create a special wrapper for the path object.
|
// create a special wrapper for the path object.
|
||||||
// other objects are wrapped in the default way.
|
// other objects are wrapped in the default way.
|
||||||
if (v instanceof RequestPath) {
|
if (v == null) {
|
||||||
|
continue;
|
||||||
|
} else if (v instanceof RequestPath) {
|
||||||
scriptable = new PathWrapper((RequestPath) v, core);
|
scriptable = new PathWrapper((RequestPath) v, core);
|
||||||
scriptable.setPrototype(core.pathProto);
|
scriptable.setPrototype(core.pathProto);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue