Community
Participate
Working Groups
This is a regression introduced by bug 346799: When the new team wizard is invoked without a current selection it throws the following NPE: java.lang.NullPointerException at org.eclipse.objectteams.otdt.internal.ui.wizards.NewTypeWizardPage.getInitialJavaElement(NewTypeWizardPage.java:789) at org.eclipse.objectteams.otdt.internal.ui.wizards.NewTypeWizardPage.init(NewTypeWizardPage.java:781) at org.eclipse.objectteams.otdt.internal.pde.ui.ExtensionEditorAdaptor$__OT__JavaAttributeWizard.addNewTeamWizardPage(ExtensionEditorAdaptor.java:199) at org.eclipse.objectteams.otdt.internal.pde.ui.ExtensionEditorAdaptor._OT$JavaAttributeWizard$addNewTeamWizardPage$addPages(ExtensionEditorAdaptor.java:189) at org.eclipse.pde.internal.ui.editor.plugin.JavaAttributeWizard._OT$addPages$chain(JavaAttributeWizard.java) at org.eclipse.pde.internal.ui.editor.plugin.JavaAttributeWizard.addPages(JavaAttributeWizard.java) at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:605) This makes it impossible to use the link in the PDE editor for creating a team that has been referenced in an aspectBinding but doesn't exist.
For reproducing note that the workspace must have > 1 projects, otherwise the single project will be picked as the current selection.
Created attachment 197932 [details] trivial fix Just checking for null fixes this issue indeed.
.
Patch has been committed, build was contributed for RC5.
Verified using build 201201281118.