Community
Participate
Working Groups
Created attachment 112534 [details] snapshot of error Create simple C project with one simple file test.c with the following content: #include <stdio.h> #include <stdlib.h> int main() { printf("Testing\n"); return 0; } Create Remote C/C++ application debug configuration and launch it. Switch to modules view and expand it. NPE occurs. I'm filing this bug against remotecdt plugin because I wasn't able to see it with local C/C++ configuration.
Exception stack trace: java.lang.NullPointerException at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:207) at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:232) at org.eclipse.ui.model.WorkbenchLabelProvider.<init>(WorkbenchLabelProvider.java:77) at org.eclipse.cdt.ui.CElementLabelProvider.<init>(CElementLabelProvider.java:98) at org.eclipse.cdt.ui.CElementLabelProvider.<init>(CElementLabelProvider.java:94) at org.eclipse.cdt.internal.ui.CWorkbenchAdapter.<init>(CWorkbenchAdapter.java:35) at org.eclipse.cdt.internal.ui.CElementAdapterFactory.getWorkbenchAdapter(CElementAdapterFactory.java:104) at org.eclipse.cdt.internal.ui.CElementAdapterFactory.getAdapter(CElementAdapterFactory.java:73) at org.eclipse.core.internal.runtime.AdapterManager.getAdapter(AdapterManager.java:291) at org.eclipse.core.runtime.PlatformObject.getAdapter(PlatformObject.java:66) at org.eclipse.cdt.internal.core.model.CElement.getAdapter(CElement.java:85) at org.eclipse.cdt.debug.internal.ui.views.modules.ModuleLabelProvider.getLabel(ModuleLabelProvider.java:43) at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider.retrieveLabel(ElementLabelProvider.java:212) at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelUpdater.run(ElementLabelProvider.java:157) at org.eclipse.debug.internal.ui.model.elements.ElementLabelProvider$LabelJob.run(ElementLabelProvider.java:71) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
I've done more testing on that and found out that it happens only when you launch debug configuration for the first time. After that it all works successfully. And it happens with local as well.
Reassigning.
Reassigning to cdt-ui. Same problem as in https://bugs.eclipse.org/bugs/show_bug.cgi?id=176871.
Fixed in CDT 5.0.2 and HEAD > 20080924.
*** Bug 250929 has been marked as a duplicate of this bug. ***