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.
Example: void foo(boolean condition) { String s = null; if (condition) { s = "foo"; } else { System.exit(0); } System.out.println(s); } This shows the hint for 's = null'. However, when removing the assignment, the result is a compile error on the last line, "variable s might not have been initialized". The hint shouldn't take the exit() call into account because the Java compiler doesn't either.
*** This bug has been marked as a duplicate of bug 243830 ***