Community
Participate
Working Groups
When shutting down Eclipse 3.7, I'm getting Thread [ModalContext] (Suspended (exception NullPointerException)) P2TargetUtils.getAgent() line: 300 P2TargetUtils.getProfileRegistry() line: 775 P2TargetUtils.cleanOrphanedTargetDefinitionProfiles() line: 159 PDECore$1.saving(ISaveContext) line: 258 SaveManager.executeLifecycle(int, ISaveParticipant, SaveContext) line: 382 SaveManager$1.run() line: 191 SafeRunner.run(ISafeRunnable) line: 42 SaveManager.broadcastLifecycle(int, Map<String,SaveContext>, MultiStatus, IProgressMonitor) line: 194 SaveManager.save(int, boolean, Project, IProgressMonitor) line: 1129 Workspace.save(boolean, boolean, IProgressMonitor) line: 2375 IDEWorkbenchAdvisor$5.run(IProgressMonitor) line: 508 ModalContext$ModalContextThread.run() line: 121 Not quite sure what the cause is, but it may be aggravated by the unhelpful rebuild on shutdown save that now occurs. The particular NPE seems lazy and to subvert the proper CoreException throw in the caller.
Failures during shutdown save are reported via a Workspace Save failed popup so I think that this should be in SR1.
*** Bug 354066 has been marked as a duplicate of this bug. ***
Created attachment 201428 [details] Fix
Fixed in HEAD for 3.8 M2.
Released to 3.7.1
As per http://www.eclipse.org/eclipse/development/plans/freeze_plan_3_7_1.php this bug needs a review+ on the patch from another committer and a review+ from a component lead to be committed into 3.7.1.
Dani and Ankur, please review.
+1
Fix is released for 3.7.1. Ankur's review satisfies the SR1 freeze requirements.
I wasn't able to reproduce the NPE. Confirmed that the fix is in M20110825-0847