Project: Birt
Bug 104180 [SPM]NullPointException is thrown when change data source in Edit Data Set builder.
Reported: 2005-07-18 01:48:48 | Status: closed fixed

Description: NullPointException is thrown when change data source in Edit Data Set builder. Steps to reproduce: 1.New a dataset 2.In Edit Data Set builder, change data source from mysql to sybase, or change to data source based on datadirect driver. 3.Click Query to input query text Expected result: No error. Actual result: java.lang.NullPointerException at org.eclipse.birt.report.data.oda.jdbc.ui.editors.SQLDataSetEditorPage.populateAv ailableDbObjects(SQLDataSetEditorPage.java:435) at org.eclipse.birt.report.data.oda.jdbc.ui.editors.SQLDataSetEditorPage.refreshPag e(SQLDataSetEditorPage.java:894) at org.eclipse.birt.report.data.oda.jdbc.ui.editors.SQLDataSetEditorPage.pageActiva ted(SQLDataSetEditorPage.java:1195) at org.eclipse.birt.report.designer.ui.dialogs.properties.AbstractPropertyDialog.sh owPage(AbstractPropertyDialog.java:420) at org.eclipse.birt.report.designer.ui.dialogs.properties.AbstractPropertyDialog.sh owSelectionPage(AbstractPropertyDialog.java:342) at org.eclipse.birt.report.designer.ui.dialogs.properties.AbstractPropertyDialog.ac cess$200(AbstractPropertyDialog.java:60) at org.eclipse.birt.report.designer.ui.dialogs.properties.AbstractPropertyDialog$2. run(AbstractPropertyDialog.java:300) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.birt.report.designer.ui.dialogs.properties.AbstractPropertyDialog$1. selectionChanged(AbstractPropertyDialog.java:295) at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:1044) at org.eclipse.core.runtime.Platform.run(Platform.java:783) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged (Viewer.java:160) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1784) at org.eclipse.jface.viewers.StructuredViewer.handleSelect (StructuredViewer.java:1027) at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected (StructuredViewer.java:1053) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent (OpenStrategy.java:209) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:204) at org.eclipse.jface.util.OpenStrategy$1.handleEvent (OpenStrategy.java:364) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713) at org.eclipse.jface.window.Window.runEventLoop(Window.java:809) at org.eclipse.jface.window.Window.open(Window.java:787) at org.eclipse.birt.report.designer.internal.ui.dialogs.BaseDialog.open (BaseDialog.java:145) at org.eclipse.birt.report.designer.ui.actions.NewDataSetAction.editDataSet (NewDataSetAction.java:182) at org.eclipse.birt.report.designer.ui.actions.NewDataSetAction.run (NewDataSetAction.java:136) at org.eclipse.jface.action.Action.runWithEvent(Action.java:996) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:538) at org.eclipse.jface.action.ActionContributionItem.access$2 (ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent (ActionContributionItem.java:400) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:367) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948) Test Build:20050718

Files changed in fix:
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java