Handle case where global variable is null.

This commit is contained in:
hns 2005-08-12 13:18:38 +00:00
parent ac0fc677a5
commit 3b2a106503

View file

@ -204,7 +204,9 @@ public class RhinoEngine implements ScriptingEngine {
// create a special wrapper for the path object.
// 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.setPrototype(core.pathProto);
} else {