Why I am getting null pointer exception?

Printable View