Hi
I think the problem is that you have not initialized your array to which you will add an element. You have to double clik and add a number. You can inicialize only the last element and the prevous elements will be inicialized also.
Try to look at the picture.
Hope it will help