Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352804 - [target] NPE in LoadTargetDefinitionJob#handleReload
Summary: [target] NPE in LoadTargetDefinitionJob#handleReload
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7.1   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 347668
Blocks:
  Show dependency tree
 
Reported: 2011-07-21 16:59 EDT by Curtis Windatt CLA
Modified: 2011-09-01 15:25 EDT (History)
4 users (show)

See Also:
ankur_sharma: review+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Windatt CLA 2011-07-21 16:59:14 EDT
+++ This bug was initially created as a clone of Bug #347668 +++

Cloned to apply the fix to 3.7.1

I opened a target platform editor (org.eclipse.pde.internal.ui.editor.targetdefinition.TargetEditor).

I got:
Communication with repository at http://download.eclipse.org/eclipse/updates/3.6/R-3.6-201006080911 failed.
java.net.SocketTimeoutException: Read timed out

And then this NPE from PDE:

java.lang.NullPointerException
at org.eclipse.pde.internal.core.target.provisional.LoadTargetDefinitionJob.handleReload(LoadTargetDefinitionJob.java:375)
at org.eclipse.pde.internal.core.target.provisional.LoadTargetDefinitionJob.loadPlugins(LoadTargetDefinitionJob.java:284)
at org.eclipse.pde.internal.core.target.provisional.LoadTargetDefinitionJob.runInWorkspace(LoadTargetDefinitionJob.java:141)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Eclipse Platform
Version: 3.6.2
Build id: M20110210-1200
Comment 1 Curtis Windatt CLA 2011-08-11 17:21:43 EDT
Released to 3.7.1
Comment 2 Curtis Windatt CLA 2011-08-17 09:38:30 EDT
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.
Comment 3 Curtis Windatt CLA 2011-08-17 09:39:42 EDT
Ankur and Dani, would you please review the fix.
Comment 4 Ankur Sharma CLA 2011-08-17 14:24:58 EDT
+1
Comment 5 Curtis Windatt CLA 2011-08-18 17:16:05 EDT
Fix is released for 3.7.1.  Ankur's review satisfies the SR1 freeze requirements.
Comment 6 Dani Megert CLA 2011-08-19 04:27:22 EDT
The fix looks good, but you need to increase the bundle version to 3.4.200.qualifier.
Comment 7 Dani Megert CLA 2011-08-19 04:28:17 EDT
(In reply to comment #6)
> The fix looks good, but you need to increase the bundle version to
> 3.4.200.qualifier.

3.4.201.qualifier that is.
Comment 8 Dani Megert CLA 2011-08-19 04:37:44 EDT
'org.eclipse.pde.core' also needs its version fixed.
Comment 9 Dani Megert CLA 2011-08-19 04:52:29 EDT
I've fixed the versions in R3_7_maintenance so that we catch the Git bus.
Comment 10 Curtis Windatt CLA 2011-09-01 15:25:03 EDT
I haven't been able to reproduce while working with targets, but the fix is in 3.7.1 and corrects the potential NPE.  Marking as VERIFIED.