Project: Birt
Bug 140974 bad assert in ScalarParameterFragment
Reported: 2006-05-10 00:36:42 | Status: resolved fixed

The following assert appears around line 98 in org.eclipse.birt.report.viewer.aggregation.parameter.ScalarParameterFragment assert paramDefaultValueObj instanceof String; If the report does not have a default value for the parameter in the report, then this assert fails even though the code that follows it explicitly handles a null value. Since null is a valid value, the assert should be assert (paramDefaultValueObj == null) || (paramDefaultValueObj instanceof String);

Files changed in fix:
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/parameter/ScalarParameterFragment.java viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java viewer/org.eclipse.birt.report.viewer/src/org/eclipse/birt/report/viewer/utilities/WebViewer.java