Bug 213088 - Create plugin from Jar throws NPE
Summary: Create plugin from Jar throws NPE
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.4 M5   Edit
Assignee: Bernd Kolb CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-12-15 06:35 EST by Bernd Kolb CLA
Modified: 2008-02-05 16:10 EST (History)
2 users (show)

See Also:


Attachments
Patch to fix the problem (673 bytes, patch)
2007-12-15 07:52 EST, Bernd Kolb CLA
no flags Details | Diff
mylyn/context/zip (736 bytes, application/octet-stream)
2008-01-02 18:18 EST, Chris Aniszczyk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Kolb CLA 2007-12-15 06:35:26 EST
Build: 3.4M4

Here's the stack trace:

java.lang.NullPointerException
at org.eclipse.pde.internal.ui.wizards.plugin.NewLibraryPluginProjectWizard.performFinish(NewLibraryPluginProjectWizard.java:123)
at org.eclipse.ui.internal.dialogs.NewWizard.performFinish(NewWizard.java:132)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:623)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3750)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3361)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:260)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:280)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:240)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:470)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:821)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:879)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:568)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:126)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1160)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:951)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:976)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:961)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:989)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:985)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1301)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3883)
at org.eclipse.swt.widgets.Tree.WM_CHAR(Tree.java:5599)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3776)
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5595)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4463)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2329)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3359)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2381)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2345)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2211)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:473)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:468)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:362)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
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:561)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:501)
at org.eclipse.equinox.launcher.Main.run(Main.java:1239)
Comment 1 Bernd Kolb CLA 2007-12-15 07:39:42 EST
OK, not as critical.

Steps to reproduce:
Open new project wizard
choose plugin from existing jar archive.
hit finish
--> NPE

Expected behavior:
Finish should be disabled
Comment 2 Bernd Kolb CLA 2007-12-15 07:52:44 EST
Created attachment 85330 [details]
Patch to fix the problem
Comment 3 Chris Aniszczyk CLA 2008-01-02 18:18:40 EST
Thanks Bernd!
Comment 4 Chris Aniszczyk CLA 2008-01-02 18:18:43 EST
Created attachment 86042 [details]
mylyn/context/zip
Comment 5 Chris Aniszczyk CLA 2008-01-02 18:18:57 EST
done!
Comment 6 Chris Aniszczyk CLA 2008-01-02 18:19:40 EST
thanks again
Comment 7 Brian Bauman CLA 2008-02-05 16:10:20 EST
Verified on I20080204-0010.  I did not see any errors when using this wizard.