Fix bug where we forgot to check for NOT_FOUND in jsFunction_get()
This commit is contained in:
parent
bd499db5ab
commit
6b443f211c
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ public class HopObject extends ScriptableObject implements Wrapper {
|
||||||
// try to get as property first
|
// try to get as property first
|
||||||
n = getFromNode(id.toString());
|
n = getFromNode(id.toString());
|
||||||
// then try to get child object by id
|
// then try to get child object by id
|
||||||
if (n == null) {
|
if (n == null || n == NOT_FOUND) {
|
||||||
n = jsFunction_getById(id);
|
n = jsFunction_getById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue