Bug 238030 - NullPointerException in JavaME project wizard performFinish if on first page
Summary: NullPointerException in JavaME project wizard performFinish if on first page
Status: CLOSED FIXED
Alias: None
Product: MTJ (Archived)
Classification: Tools
Component: UI (show other bugs)
Version: 0.9   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: 0.9   Edit
Assignee: Diego Madruga Sandin CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui, usability
: 239083 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-21 14:53 EDT by Craig Setera CLA
Modified: 2008-10-15 09:23 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 Craig Setera CLA 2008-06-21 14:53:16 EDT
If you choose "finish" from the first page of the new JavaME project wizard, it will fail with a NPE.  (see stack trace below).  If you go to the second page and then choose finish, it will complete successfully.  Either the first page needs to be fixed so that finish is not allowed or the appropriate initialization needs to be done on the first page so that the second page is not required.

java.lang.NullPointerException
at org.eclipse.mtj.ui.internal.wizards.NewJ2MEProjectWizard$2.run(Unknown Source)
at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:68)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
at org.eclipse.mtj.ui.internal.wizards.NewJ2MEProjectWizard.performFinish(Unknown Source)
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:616)
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:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:116)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
Comment 1 Gustavo de Paula CLA 2008-06-23 09:20:47 EDT
diego commented with me that this issues seems to come from eclipseme 1.7.8. i will assign to him in order that he take a look at it.

do you know which SDK have you used that generated the exception?

:)
gustavo
Comment 2 Feng(Marvin) Wang CLA 2008-07-01 02:52:27 EDT
*** Bug 239083 has been marked as a duplicate of this bug. ***
Comment 3 Diego Madruga Sandin CLA 2008-08-07 12:58:00 EDT
This issue was fixed. The user can't finish the wizard without selecting one device.
Comment 4 Gustavo de Paula CLA 2008-10-15 09:23:10 EDT
all bugs we integrated and release on MTj 0.9