So basically I\'m trying to fill my array with some data but apparently I\'m doing a mistake . The problem was when using the method setName() . Somehow the program crashes