NullPointerException when trying to paint

Printable View