Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325462 - NPE in ProjectComponent during test run
Summary: NPE in ProjectComponent during test run
Status: CLOSED DUPLICATE of bug 342834
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE API Tools Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 09:17 EDT by Olivier Thomann CLA
Modified: 2013-01-28 11:42 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2010-09-16 09:17:41 EDT
Using
plugin@org.eclipse.pde.api.tools=v20100910,kmoir@dev.eclipse.org:/cvsroot/eclipse,,pde/apitools/org.eclipse.pde.api.tools
plugin@org.eclipse.pde.api.tools.ui=v20100910,kmoir@dev.eclipse.org:/cvsroot/eclipse,,pde/apitools/org.eclipse.pde.api.tools.ui
plugin@org.eclipse.pde.api.tools.tests=v20100910,kmoir@dev.eclipse.org:/cvsroot/eclipse,,pde/apitools/org.eclipse.pde.api.tools.tests

The test harness reported this error:

java.lang.NullPointerException
at org.eclipse.pde.api.tools.internal.model.ProjectComponent.getApiTypeContainer(ProjectComponent.java:373)
at org.eclipse.pde.api.tools.internal.model.ProjectComponent.getTypeContainer(ProjectComponent.java:418)
at org.eclipse.pde.api.tools.internal.ProjectApiDescription.getApiTypeContainer(ProjectApiDescription.java:642)
at org.eclipse.pde.api.tools.internal.ProjectApiDescription$TypeNode.refresh(ProjectApiDescription.java:252)
at org.eclipse.pde.api.tools.internal.ApiDescription.findNode(ApiDescription.java:423)
at org.eclipse.pde.api.tools.internal.ProjectApiDescription.visit(ProjectApiDescription.java:409)
at org.eclipse.pde.api.tools.internal.ProjectApiDescription.accept(ProjectApiDescription.java:378)
at org.eclipse.pde.api.tools.builder.tests.ApiBuilderTest.exportApiComponent(ApiBuilderTest.java:328)
at org.eclipse.pde.api.tools.builder.tests.compatibility.BundleMergeSplitTests.setupTest(BundleMergeSplitTests.java:401)
at org.eclipse.pde.api.tools.builder.tests.compatibility.BundleMergeSplitTests.test001(BundleMergeSplitTests.java:132)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:376)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:209)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:35)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:621)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:576)
at org.eclipse.equinox.launcher.Main.run(Main.java:1409)
at org.eclipse.equinox.launcher.Main.main(Main.java:1385)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 1 Olivier Thomann CLA 2010-09-16 09:20:04 EDT
I don't see exactly how this can happen as there is a check for null at the beginning of the method.
The only way this can happen is with a concurrency access that would set this field to null while inside the method.
Comment 2 Michael Rennie CLA 2011-01-14 11:00:11 EST
This failed again in N20110113-2000
Comment 3 Curtis Windatt CLA 2013-01-28 11:42:54 EST

*** This bug has been marked as a duplicate of bug 342834 ***