Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 302591 - NPE due to shutdown ordering problem
Summary: NPE due to shutdown ordering problem
Status: RESOLVED DUPLICATE of bug 265973
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-11 10:30 EST by John Arthorne CLA
Modified: 2010-02-11 10:36 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2010-02-11 10:30:06 EST
I20100209-2300

In the automated tests from this build there is an NPE during shutdown. This doesn't impact usability of the build, but it should be cleaned up to avoid the NPE:

Caused by: java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.engine.ProfilePreferences.getAgent(ProfilePreferences.java:145)
at org.eclipse.equinox.internal.p2.engine.ProfilePreferences.save(ProfilePreferences.java:274)
at org.eclipse.core.internal.preferences.EclipsePreferences.flush(EclipsePreferences.java:352)
at org.eclipse.core.internal.preferences.EclipsePreferences.flush(EclipsePreferences.java:340)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.saveToPreferences(AbstractRepositoryManager.java:948)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.shutdown(AbstractRepositoryManager.java:988)
at org.eclipse.equinox.internal.p2.repository.Activator.stop(Activator.java:65)
Comment 1 John Arthorne CLA 2010-02-11 10:36:33 EST
The basic problem here is that the engine bundle is shutting down before the repository bundle. We actually already have a bug for this so I'm marking it as a duplicate.

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