This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
public void foo(Object p) { boolean f = p != null; System.out.println(f && p.hashCode() != 0); // false hint: "Dereferencing possible null pointer" if(p == null) // false hint: "Unnecessary test for null - a NullPointerException would already be thrown" System.out.println("boo"); }
*** This bug has been marked as a duplicate of bug 249320 ***
Fixed in experimental impl.