Bug 179661 NPE throws out when preview the attached report [1102]
Description: NPE throws out when preview the attached report [1102] Build number: 2.2.0.v20070328-0630 Steps to reproduce: 1, Using attached report design file 2, Preview Expected result: Previewed successfully Actual result: NPE throws out when preview Error log:
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetIterator.java
measure,
							function );
					query.addResultSetExpression( measure.getName( ), se );
				}
				else
				{
					query.addResultSetExpression( measure.getName( ),
							new ScriptExpression( measure.getMeasureExpression( ) ) );
				}
				ColumnMeta meta = new ColumnMeta( measure.getName( ), false );
				
				
				meta.setDataType( ModelAdapter.adaptModelDataType( measure.getDataType( )) );
				metaList.add( meta );
			}
		}
	}
	/**
	 * 
	 * @param query
	 * @param measure
	 * @param function
	 * @return
	 */
	private ScriptExpression populateExpression( QueryDefinition query,
			MeasureHandle measure, String function )
	{
		ScriptExpression se = null;
		
		if ( function == null || function.equals( "sum" ) )