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
try
			{
				if( !this.hasNext )
					return null;
				Object result = this.currentValue;
				boolean accept = false;
				while( this.dataSetIterator.next( ) )
				{
					accept = true;
					Iterator it = this.levelValueMap.keySet( ).iterator( );
					
					while( it.hasNext())
					{
						String key = it.next( ).toString( );
						Object value = this.levelValueMap.get( key );
						if( ScriptEvalUtil.compare( value, this.dataSetIterator.getValue( this.dataSetIterator.getFieldIndex( key ) ) ) != 0)
						{
							accept = false;
							break;
						}
					}
					if( accept )
					{
						this.currentValue = this.dataSetIterator.getValue( this.dataSetIterator.getFieldIndex( this.targetLevelName ) );
						break;
					}
				}
								
				this.hasNext = accept;
				return result;