Project: Birt
Bug 113320 NullPointException is thrown when preview a float type dynamic parameter.
Reported: 2005-10-21 02:46:32 | Status: closed fixed

Description: NullPointException is thrown when click Show Report Parameter button after preview a float type dynamic parameter. Steps to reproduce: 1. New a datasource(sqlserver) and dataset(account),same as scr #113317 2. New a dynamic parameter with listbox type, Select value column:account_id, Select display text: account_nm. 3. Drag the parameter to Layout 4. Preview. (Select value from the list but OK button keeps gray) 5. Set allow null option for the parameter. 6. Preview. 7. Click Show Report Parameters button. Expected result: 1. In step 4, I can select a value and click OK to preview. 2. In step 7, the Parameter dialog shows up. Actual result: 1. In step 4, OK button keeps gray. 2. In step 7, NullPointException as below: ava.lang.NullPointerException at org.eclipse.birt.report.designer.internal.ui.dialogs.InputParameterDialog.isPara meterRequired(InputParameterDialog.java:985) at org.eclipse.birt.report.designer.internal.ui.dialogs.InputParameterDialog.rendSc alarParameter(InputParameterDialog.java:299) at org.eclipse.birt.report.designer.internal.ui.dialogs.InputParameterDialog.render ParameterWidgets(InputParameterDialog.java:209) at org.eclipse.birt.report.designer.internal.ui.dialogs.InputParameterDialog.create DialogArea(InputParameterDialog.java:168) at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:687) at org.eclipse.jface.window.Window.create(Window.java:418) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996) at org.eclipse.birt.report.designer.internal.ui.editors.preview.PreviewEditor$1.mou seDown(PreviewEditor.java:298) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:133) 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)

Files changed in fix:
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/ReportParameterConverter.java