diff --git a/src/helma/scripting/fesi/FesiEvaluator.java b/src/helma/scripting/fesi/FesiEvaluator.java index b1572ceb..187f6cfc 100644 --- a/src/helma/scripting/fesi/FesiEvaluator.java +++ b/src/helma/scripting/fesi/FesiEvaluator.java @@ -395,6 +395,9 @@ public final class FesiEvaluator implements ScriptingEngine { String protoname = app.getPrototypeName (obj); try { ObjectPrototype op = getPrototype (protoname); + // if this is an untyped object return false + if (op == null) + return false; ESValue func = op.getProperty (fname, fname.hashCode()); if (func != null && func instanceof FunctionPrototype) return true;