Project: Birt
Bug 155262 Total.countDistinct() method returns null on empty resultset
Reported: 2006-08-25 15:32:45 | Status: resolved fixed

If you use Total.countDistinct(row.aColumn, null, 0) or Total.countDistinct(dataSetRow.aColumn, null, 0) and the resultset for the dataset is empty, the method returns null. It should return 0.

Files changed in fix:
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/aggregation/JSAggrValueObject.java