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 - NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.core.FakeRegistrationWorker$FixRegistrationRunnable.run
Summary: NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.core.FakeRegis...
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-05 21:38 UTC by Exceptions Reporter
Modified: 2016-07-21 19:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 222871


Attachments
stacktrace (475 bytes, text/plain)
2016-03-05 21:38 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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"