Bug 201017 TopN, TopPercent, BottomPercent filters will lead NPE when the values contains NULL[07]
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/NEvaluator.java
}
			}
		}
	}
	
	/**
	 * Do the second pass
	 * @param N
	 * @return
	 */
	private boolean doSecondPass( )
	{
		secondPassRowNumberCounter++;
		if( secondPassRowNumberCounter > this.filterPassController.getSecondPassRowCount() )
			this.filterPassController.setSecondPassRowCount( secondPassRowNumberCounter );
		else
			this.secondPassRowNumberCounter = this.filterPassController.getSecondPassRowCount();
		
		if ( qualifiedRowCounter < N )
		{
			for ( int i = 0; i < N; i++ )
			{
				int rowId = 0;
				if( rowIdList.get( i )!=null)
				{
					rowId = ((Integer)rowIdList.get( i )).intValue( );
				}
				if ( rowId == secondPassRowNumberCounter )
				{
					qualifiedRowCounter++;