void () { doTest("java.lang.NullPointerException: Cannot enter synchronized block because \"obj\" is null", "Find why 'obj' could be null", "class X {Object lock;void test() {synchronized(obj) {System.out.println(obj);}}}"); }