From 3b2a106503b9b94206be3bc0cdeea7f648ec0fca Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 12 Aug 2005 13:18:38 +0000 Subject: [PATCH] Handle case where global variable is null. --- src/helma/scripting/rhino/RhinoEngine.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helma/scripting/rhino/RhinoEngine.java b/src/helma/scripting/rhino/RhinoEngine.java index 64978c88..5153ecd3 100644 --- a/src/helma/scripting/rhino/RhinoEngine.java +++ b/src/helma/scripting/rhino/RhinoEngine.java @@ -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 {