Community
Participate
Working Groups
Build Identifier: I20100608-0911 When I call WizardDialog.showPage() method, I have a null argument exception. The same code works without any problems with WizardDialog in Eclipse 3.2. !ENTRY org.eclipse.osgi 4 0 2010-09-09 15:14:03.971 !MESSAGE Application error !STACK 1 org.eclipse.core.runtime.AssertionFailedException: null argument: at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85) at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73) at org.eclipse.jface.dialogs.PageChangingEvent.<init>(PageChangingEvent.java:57) at org.eclipse.jface.wizard.WizardDialog.doPageChanging(WizardDialog.java:906) at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1197) ... Reproducible: Always Steps to Reproduce: 1. Create a WizardPage and a Wizard. 2. Add the page to the wizard. 3. Override createPageControls(Composite) method of the Wizard, and call wizard.getContainer().showPage(composite).
Some correction to my report. Actual call needs to be corrected as: IWizardContainer.showPage(IWizardPage) and this call ends up in WizardDialog.showPage().
You can probably temporarily workaround the problem by overriding getCurrentPage() to return a non-null value. I suspect this has been broken since 3.3. Could you please provide some simple code to reproduce the problem?
Hi, Thanks for the quick suggested workaround. It works. I will try to write a test code that reproduces this problem and attach it to this bug when I have a chance. Thanks again.
(In reply to comment #3) > Thanks for the quick suggested workaround. It works. > I will try to write a test code that reproduces this problem and attach it to > this bug when I have a chance. Please reopen when you have the sample code to reproduce the issue