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.
Using the following code: List test = null; for (Object linkedDocumentData : test) { //throws NPE not detected by hint. } test.add("NPE detected by hint"); The hint shows on the call to the .add method but not on the for loop. It works as designed using different kinds of for loops, only the "enhanced" for loop breaks.
Trivial fix for 8.1, keeping as a reference for the reimplementation. Jet-main#8a6eb4b6eeaa
Integrated into 'main-silver', will be available in build *201509170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8a6eb4b6eeaa User: Svata Dedic <sdedic@netbeans.org> Log: #245370: inspect iterations as pointer dereferences