null pointer when adding object into an array

Printable View