Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341288

Summary: NPE when importing package in manifest editor
Product: [Eclipse Project] e4 Reporter: DJ Houghton <dj.houghton>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description DJ Houghton CLA 2011-03-29 17:12:23 EDT
eclipse.buildId=I20110325-1411

I'm in the manifest editor and I have a bunch of bundle imports but no package imports. I select "add" to add a package import and I get the following NPE.

java.lang.NullPointerException
at org.eclipse.pde.internal.ui.editor.plugin.ImportPackageSection.setElements(ImportPackageSection.java:507)
at org.eclipse.pde.internal.ui.editor.plugin.ImportPackageSection.access$3(ImportPackageSection.java:474)
at org.eclipse.pde.internal.ui.editor.plugin.ImportPackageSection$3.run(ImportPackageSection.java:415)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.pde.internal.ui.editor.plugin.ImportPackageSection.handleAdd(ImportPackageSection.java:425)
at org.eclipse.pde.internal.ui.editor.plugin.ImportPackageSection.buttonSelected(ImportPackageSection.java:344)
at org.eclipse.pde.internal.ui.editor.TableSection$PartAdapter.buttonSelected(TableSection.java:50)
at org.eclipse.pde.internal.ui.parts.SharedPartWithButtons$SelectionHandler.buttonSelected(SharedPartWithButtons.java:42)
at org.eclipse.pde.internal.ui.parts.SharedPartWithButtons$SelectionHandler.widgetSelected(SharedPartWithButtons.java:33)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4114)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1443)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1451)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1263)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3960)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3599)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:852)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:768)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:87)
at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:542)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:524)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Comment 1 Remy Suen CLA 2011-03-29 17:21:33 EDT
(In reply to comment #0)
> eclipse.buildId=I20110325-1411

That's a strange build id. Did something go wrong with our build scripts?
http://download.eclipse.org/e4/sdk/
Comment 2 DJ Houghton CLA 2011-03-29 17:27:07 EDT
According to my Installation History my previous version was 0323-1055. I have auto-check for updates turned on and got notification so I updated late last week when a new build was available.

I just checked my repo settings and I have a couple different sites for e4 builds. One of them being: 
  http://download.eclipse.org/eclipse/updates/4.1-I-builds

This is what I see on eclipse.org.

dj@dev1:~/downloads/eclipse/updates/4.1-I-builds> d
total 8
drwxr-xr-x 2 pwebster common  80 2011-03-26 04:09 categories/
-rw-rw-r-- 1 pwebster common 467 2011-03-26 04:06 compositeArtifacts.jar
-rw-rw-r-- 1 pwebster common 474 2011-03-26 04:06 compositeContent.jar
drwxrwxr-x 5 pwebster common 184 2011-03-26 04:06 I20101210-1713/
drwxrwxr-x 5 pwebster common 184 2011-03-26 04:07 I20110216-1704/
drwxrwxr-x 5 pwebster common 184 2011-03-26 04:07 I20110320-2300/
drwxrwxr-x 5 pwebster common 184 2011-03-26 04:08 I20110323-1055/
drwxrwxr-x 5 pwebster common 184 2011-03-26 04:08 I20110325-1411/
dj@dev1:~/downloads/eclipse/updates/4.1-I-builds>
Comment 3 Remy Suen CLA 2011-04-02 07:05:34 EDT

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