I'm running this on an xml file and when I click on that particular button relating to this code it gives me an error. I think it has something to do with the arraylist combined with integers.
public void doError(ActionEvent actionEvent) {
ArrayList<Integer> integers =null;
for (int i = 0; i < 100; i++) {
integers.add(i);
}