do checkNode() as first thing in HopObject.list()
This commit is contained in:
parent
6b443f211c
commit
d155ee6b1a
1 changed files with 2 additions and 2 deletions
|
@ -440,11 +440,11 @@ public class HopObject extends ScriptableObject implements Wrapper {
|
||||||
* @return ...
|
* @return ...
|
||||||
*/
|
*/
|
||||||
public Scriptable jsFunction_list() {
|
public Scriptable jsFunction_list() {
|
||||||
|
checkNode();
|
||||||
|
|
||||||
Enumeration e = node.getSubnodes();
|
Enumeration e = node.getSubnodes();
|
||||||
ArrayList a = new ArrayList();
|
ArrayList a = new ArrayList();
|
||||||
|
|
||||||
checkNode();
|
|
||||||
|
|
||||||
while ((e != null) && e.hasMoreElements()) {
|
while ((e != null) && e.hasMoreElements()) {
|
||||||
a.add(Context.toObject(e.nextElement(), core.global));
|
a.add(Context.toObject(e.nextElement(), core.global));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue