Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 266340 - NullPointerException in ProfilePreferences
Summary: NullPointerException in ProfilePreferences
Status: RESOLVED DUPLICATE of bug 265973
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-26 11:53 EST by Matthew Piggott CLA
Modified: 2009-02-26 11:58 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Piggott CLA 2009-02-26 11:53:05 EST
I was working on another bug involving the MirrorApplication, and noticed at the end of the log there are two NullPointerExceptions at the end of the log.

This is occurring because the AgentLocation is null, though earlier in execution it was able to obtain it.  Perhaps this is occurring during the shutdown processthe AgentLocation service is terminated before the Preferences service?


!ENTRY org.eclipse.core.jobs 4 2 2009-02-26 11:29:47.562
!MESSAGE An internal error occurred during: "Saving repository settings".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.equinox.internal.p2.engine.ProfilePreferences.getDefaultLocation(ProfilePreferences.java:141)
	at org.eclipse.equinox.internal.p2.engine.ProfilePreferences.save(ProfilePreferences.java:153)
	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.core.helpers.AbstractRepositoryManager$SaveJob.run(AbstractRepositoryManager.java:57)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 John Arthorne CLA 2009-02-26 11:58:16 EST

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