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.
Build: NetBeans IDE 8.1 (Build 201510222201) VM: OpenJDK 64-Bit Server VM, 25.72-b16, OpenJDK Runtime Environment, 1.8.0_72-b16 OS: Linux User Comments: GUEST: Have three projects opened, one Fortran and two C/C++ Stacktrace: java.lang.NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.core.FakeRegistrationWorker$FixRegistrationRunnable.run(FakeRegistrationWorker.java:154) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Created attachment 158753 [details] stacktrace
I investigated change set bb5d68d8a020 (in releases repository) that was used to build NB 8.1. The top stack line 154 points to the closing curly bracket of run method (which is followed by 2 more closing curlies (method and class) and the file is over). And it never was longer, neither became it longer after the release. The line 153 contains countDownLatch.countDown(); where countDownLatch is a final field that is initilised in constructor (of a private class FixRegistrationRunnable). The constructor is called only once and countDownLatch is not null in this call. So there can't be NPE in line 153 either. That's mysterious. In any case, this was reported only once, in March, and never repeated, and I don't know how to repeat, and nobody knows. So I'm closing this as "works for me"