do checkNode() as first thing in HopObject.list()

This commit is contained in:
hns 2003-12-03 10:14:35 +00:00
parent 6b443f211c
commit d155ee6b1a

View file

@ -440,11 +440,11 @@ public class HopObject extends ScriptableObject implements Wrapper {
* @return ...
*/
public Scriptable jsFunction_list() {
checkNode();
Enumeration e = node.getSubnodes();
ArrayList a = new ArrayList();
checkNode();
while ((e != null) && e.hasMoreElements()) {
a.add(Context.toObject(e.nextElement(), core.global));
}