Do you ever instantiate the objects in the handButton array? Creating an array is one thing, but if its an array of objects the default value will be null until instantiated.