NullPointerException even when class is instantiated as expected

Printable View