NullPointerException in PEX