From 4a83d1390adb86bd16011dd891215b9276bf8849 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 8 Aug 2001 10:17:29 +0000 Subject: [PATCH] only call internal functions if they are actually defined for the object we're calling them on. --- src/helma/framework/core/RequestEvaluator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index be26e190..6ea23b99 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -489,7 +489,9 @@ public class RequestEvaluator implements Runnable { current = esu; } } - esresult = current.doIndirectCall (evaluator, current, method, new ESValue[0]); + // call internal functions only if they're specified + if (current.getProperty (method, method.hashCode()) != ESUndefined.theUndefined) + esresult = current.doIndirectCall (evaluator, current, method, new ESValue[0]); commitTransaction (); } catch (Throwable wrong) {