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.
Created attachment 157462 [details] Test file It thinks the variable could be null when we are checking that it is not null.
The good news is that the new implemenation handles the situation correctly -- as the loop condition tests the assignment (= the variable value) for != null, the value is asserted to be non-null within loop body. The bad news is that it the new impl is still a little clumsy and not well tested :-/