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.

Bug 258256

Summary: NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.core.FakeRegistrationWorker$FixRegistrationRunnable.run
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: Code ModelAssignee: Vladimir Kvashin <vkvashin>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 222871
Attachments: stacktrace

Description Exceptions Reporter 2016-03-05 21:38:40 UTC
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)
Comment 1 Exceptions Reporter 2016-03-05 21:38:42 UTC
Created attachment 158753 [details]
stacktrace
Comment 2 Vladimir Kvashin 2016-07-21 19:13:54 UTC
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"