Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332636 - NPE trying to import a plugin as source project from PluginsView
Summary: NPE trying to import a plugin as source project from PluginsView
Status: RESOLVED WORKSFORME
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-15 09:38 EST by Aurelien Pupier CLA
Modified: 2019-09-02 14:53 EDT (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 Aurelien Pupier CLA 2010-12-15 09:38:36 EST
java.lang.NullPointerException
at org.eclipse.pde.internal.ui.wizards.imports.PluginImportOperation.deleteConflictingProjects(PluginImportOperation.java:189)
at org.eclipse.pde.internal.ui.wizards.imports.PluginImportOperation.runInWorkspace(PluginImportOperation.java:129)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Aurelien Pupier CLA 2010-12-15 09:40:59 EST
It seems to happenned when you have already the plugin in your workspace in the state closed
Comment 2 Curtis Windatt CLA 2010-12-15 14:53:17 EST
This is working fine for me in 3.7 and in 3.6.1.  The plug-in model manager should not ever be returning a null plug-in.  I don't see anywhere in the code that has changed that would affect this.
Comment 3 Aurelien Pupier CLA 2010-12-16 12:56:35 EST
Hum, I tried with a fresh elipse installed and it effectively works nicely.

I reproduce it in my Eclipse used for my development.
I will try to investigate a little more to determine what is the reason.
Comment 4 Curtis Windatt CLA 2010-12-16 13:06:24 EST
(In reply to comment #3)
> Hum, I tried with a fresh elipse installed and it effectively works nicely.
> 
> I reproduce it in my Eclipse used for my development.
> I will try to investigate a little more to determine what is the reason.

You'll need to be pointing to a target definition (that isn't the current target platform) that ends up having an error during the target resolve.  This can probably be reproduced by creating a target that has a bundle with a mangled manifest file.
Comment 5 Eclipse Genie CLA 2018-09-19 14:17:15 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Lars Vogel CLA 2019-09-02 14:53:32 EDT
This bug has been marked as stalebug a while ago without any further interaction.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard flag.