Iterate over native Arrays fails

Hi

an hql query gives me back an array. Each element consits of an array with to entities. The second can be null/empty:

Accessing the second (empty) element gives me the error “key 2 doesn’t exist in native error”

Event iterating fails:

How can I solve this?

Kind regards
Michael

Hi

this fixed it for me:

for (pair in a) {
	pair = createObject("java", " java.util.Arrays").asList(pair);
	for (i=0;i < pair.size();i=i+1) {
//in the real world do something meaniful with null and != null objects :-)
		if (isNull(pair.get(i))) {
			writeDump(nullValue());
		} else {
			writeDump(getMetadata(pair.get(i))["table"]);
		}
	}
}