void (Object o) { try { if (o == null) return; } finally { System.out.println(o.<warning descr="Method invocation 'hashCode' may produce 'NullPointerException'">hashCode</warning>()); // Error here. } System.out.println(o.hashCode()); // No error here. }