Bug 26287 NPE in Javadoc wizard
!ENTRY org.eclipse.ui 4 4 Nov 14, 2002 14:19:00.445 !MESSAGE Unhandled exception caught in event loop. !ENTRY org.eclipse.ui 4 0 Nov 14, 2002 14:19:00.485 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.ui.javadocexport.JavadocStandardWizardPage.findReferen cedElements(JavadocStandardWizardPage.java:324) at org.eclipse.jdt.internal.ui.javadocexport.JavadocStandardWizardPage.findRE (JavadocStandardWizardPage.java:291) at org.eclipse.jdt.internal.ui.javadocexport.JavadocStandardWizardPage.updateCheck edListGroup(JavadocStandardWizardPage.java:453) at org.eclipse.jdt.internal.ui.javadocexport.JavadocStandardWizardPage.createListD ialogField(JavadocStandardWizardPage.java:239) at org.eclipse.jdt.internal.ui.javadocexport.JavadocStandardWizardPage.createContr ol(JavadocStandardWizardPage.java:112) at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:165) at org.eclipse.jface.wizard.WizardDialog.createPageControls (WizardDialog.java:498) at org.eclipse.jface.wizard.WizardDialog.setWizard (WizardDialog.java:839) at org.eclipse.jface.wizard.WizardDialog.showPage (WizardDialog.java:873) at org.eclipse.jface.wizard.WizardDialog.nextPressed (WizardDialog.java:646) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:304) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:397) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:87) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) 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.ExportResourcesAction.run (ExportResourcesAction.java:84) at org.eclipse.jface.action.Action.runWithEvent(Action.java:769) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:411) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:365) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:356) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:48) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) 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:1435) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1418) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:831) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocStandardWizardPage.java
}
		/**
		 * @see IListAdapter#selectionChanged(DialogField)
		 */
		public void selectionChanged(DialogField field) {
			List selection= fListDialogField.getSelectedElements();
			if (selection.size() != 1) {
				fListDialogField.enableButton(2, false);
			} else {
				fListDialogField.enableButton(2, true);
			}
		}
	}
	/**
	 * Method doEditButtonPressed.
	 */
	private void doEditButtonPressed() {
		StructuredSelection selection= (StructuredSelection) fListDialogField.getTableViewer().getSelection();
		Object obj= selection.getFirstElement();
		if (obj instanceof IAdaptable) {
			IJavaElement el= (IJavaElement) ((IAdaptable) obj).getAdapter(IJavaElement.class);
			JavadocPropertyDialog jdialog= new JavadocPropertyDialog(getShell(), el);
			jdialog.open();
		}
	}
	private class JavadocPropertyDialog extends StatusDialog implements IStatusChangeListener {
		private JavadocConfigurationBlock fJavadocConfigurationBlock;
		private IJavaElement fElement;
		public JavadocPropertyDialog(Shell parent, IJavaElement selection) {
			super(parent);