Annoying null pointer exception in my code

Printable View