Project: Eclipse_Platform_UI
Bug 23018 [Wizards] Nested long-running operations (IRunnableWithProgress) leads to exception
Reported: 2002-08-30 04:35:00 | Status: closed fixed

I 've got a wizard, in performFinish() it has: getContainer().run(false, true, operation1); then operation1 (inner class of my wizard) has inside it call to getContainer().run(false, true, operation2); After finishing execution I've got: Unhandled exception caught in event loop. Reason: java.lang.NullPointerException java.lang.NullPointerException at org.eclipse.jface.wizard.WizardDialog.stopped(WizardDialog.java:938) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:723) at com.exigen.studio.templates.defaultwizard.DefaultNewProjectFromTemplateWizard.pe rformFinish(DefaultNewProjectFromTemplateWizard.java:76) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) ..... The reason is that when operation1 executor disposes resources at the and they are already disposed by operation2 execution finish.

Files changed in fix:
bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/wizard/WizardDialog.java