JCPs and JWPs crash with a 'java.lang.NullPointerException' error message