Community
Participate
Working Groups
I20101214-0800 Steps: 1. Import 2. Plug-ins and Fragments 3. Target definition: Running Platform 4. Import As: Projects from a repo 5. Next => Error Log: an error with empty message: java.lang.NullPointerException at org.eclipse.pde.internal.core.PDEState.createNewTargetState(PDEState.java:153) at org.eclipse.pde.internal.core.PDEState.<init>(PDEState.java:102) at org.eclipse.pde.internal.core.PDEState.<init>(PDEState.java:92) at org.eclipse.pde.internal.ui.wizards.imports.PluginImportWizardFirstPage$11.run(PluginImportWizardFirstPage.java:598) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
The problem is in PluginImportWizardFirstPage. We need to create a state from the chosen target, so we resolve it and get the bundle urls. We don't get urls for bundles that have errors (problems downloading or bad manifests, etc). However, we create the array holding them ahead of time (resulting in null entries). Just changing to an arraylist will avoid this.
I've just noticed that my Running Platform points to a non-existing directory, so you won't be able to read any of the plug-in manifests.
Created attachment 185413 [details] Fix v01 Will this do the job?
Fixed in HEAD. Thanks.
Verified in I20110126-0800