Bug 190984 xtab filter/sort did not work properly when using a joined data set
steps to reproduce: - use the attached report - try to add a filter/sort on xtab, e.g. using country column - notice that the value list is unavailable - try to enter the filter/sort condition manually, e.g. "USA" - preview in layout expected behavior: - when use joined data set, the value list should be available - report should be previewed properly actual behavior: - the value list was unavailable - NPE was thrown out when preview the report with the filter/sort condition being completed manually
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/CubeQueryUtil.java
if ( refDimLevel.size( ) > 1 )
					continue;
				if ( !refDimLevel.contains( target ) )
				{
					List aggrOns = binding.getAggregatOns( );
					if( aggrOns.size( ) == 0 )
					{
						if( this.getReferencedMeasureName( binding.getExpression( ) )!= null )
						{
							result.add( binding );
							continue;
						}
					}
					for ( int j = 0; j < aggrOns.size( ); j++ )
					{
						DimLevel dimLevel = OlapExpressionUtil.getTargetDimLevel( aggrOns.get( j )
								.toString( ) );
						if ( dimLevel.equals( target ) )
						{
							 
							
							if( j == aggrOns.size( ) -1 )
								result.add( binding );
							else
							{
								DimLevel next = OlapExpressionUtil.getTargetDimLevel( aggrOns.get( j+1 )
										.toString( ) );
								if ( getAxisQualifierLevel( next,
										cubeDefn.getEdge( getAxisQualifierEdgeType( dimLevel,
												cubeDefn ) ) ) == null )