Project: JDT
Bug 31096 NPE creating Packages wizard
Reported: 2003-02-06 11:13:52 | Status: resolved fixed

20030206 I just got an NPE creating a new package wizard. It has to be the first thing you do in an empty workspace for it to happen - if you have loaded anything into your workbench or opened another wizard I can't replicate it. STEPS 1) Select New -Other 2) Select Java-> package. 3) Try it again - no problem. !SESSION Feb 06, 2003 11:00:22.296 -------------------------------------------- - java.version=1.4.1-rc java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -dev bin -feature org.eclipse.platform -data D:\R21 \0206\eclipse\runtime-workspace -os win32 -ws win32 -arch x86 -nl en_US - configuration file:D:/R21/0206/eclipse/workspace/.metadata/.plugins/org.eclipse.pde.core/D__R 21_0206_eclipse_runtime-workspace/platform.cfg -install file:D:/R21/0206/eclipse/ !ENTRY org.eclipse.jface 4 2 Feb 06, 2003 11:00:22.312 !MESSAGE Problems occurred when invoking code from plug- in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.ui.wizards.NewPackageWizardPage.init (NewPackageWizardPage.java:106) at org.eclipse.jdt.internal.ui.wizards.NewPackageCreationWizard.addPages (NewPackageCreationWizard.java:33) at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage (WizardSelectionPage.java:99) at org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advanceToNextPage (NewWizardSelectionPage.java:39) at org.eclipse.ui.internal.dialogs.NewWizardNewPage.doubleClick (NewWizardNewPage.java:145) at org.eclipse.jface.viewers.StructuredViewer$1.run (StructuredViewer.java:372) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:867) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick (StructuredViewer.java:370) at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect (StructuredViewer.java:586) at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected (StructuredViewer.java:679) at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent (OpenStrategy.java:181) at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:178) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:225) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1692) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410) at org.eclipse.jface.window.Window.runEventLoop(Window.java:561) at org.eclipse.jface.window.Window.open(Window.java:541) at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:122) at org.eclipse.jface.action.Action.runWithEvent(Action.java:804) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:450) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:398) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:392) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:72) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1692) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1289) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1272) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) 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:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewPackageWizardPage.java