NullPointerException when use a method from another class

Printable View