Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
8.2, 9.0
-
None
-
None
Description
If the last line of a void Lamda is "field = null" and invoke the resulting (in this case) Runnable, Netbeans will tell you that you are dereferncing a null pointer.
// Some comments here String value = ""; void nullDereference(){ Runnable run = ()->{ value = null; }; run.run();//false positive }