You need to call,  over the SnapshotArray `getChildren()`, `begin();` before starting to iterate and `end();` then the iteration ended.
```java
g.getChildren().begin();
```
```java
g.getChildren().end();
```