From 6b443f211c0556df94706e791431cacd2b232c6e Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 2 Dec 2003 19:37:22 +0000 Subject: [PATCH] Fix bug where we forgot to check for NOT_FOUND in jsFunction_get() --- src/helma/scripting/rhino/HopObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/scripting/rhino/HopObject.java b/src/helma/scripting/rhino/HopObject.java index 3dfcd542..8523572d 100644 --- a/src/helma/scripting/rhino/HopObject.java +++ b/src/helma/scripting/rhino/HopObject.java @@ -303,7 +303,7 @@ public class HopObject extends ScriptableObject implements Wrapper { // try to get as property first n = getFromNode(id.toString()); // then try to get child object by id - if (n == null) { + if (n == null || n == NOT_FOUND) { n = jsFunction_getById(id); } }