for (int i = 0, max = getQuantity(); i < max; i++) { Spatial child =  children.get(i);
Spatial child; for (int i = 0, n = getQuantity(); i < n; i++) { try { child = children.get(i); } catch (IndexOutOfBoundsException e) {   break; }
    public void updateWorldData(float time) {        super.updateWorldData(time);        for (int i = 0, max = getQuantity(); i < max; i++) {            Spatial child =  children.get(i);            if (child != null) {                child.updateGeometricState(time, false);            }        }    }