summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpshi2012-03-22 02:49:21 (EDT)
committer mwu2012-03-22 02:49:21 (EDT)
commitf042b3f1eae97a316b499d92b87dcda38e9664cd (patch)
treeeba6ee4bb73c381dd47fab9ac05f06d045ae22c4
parente61a9bf7890ef1bf696d536affbb1d2dbea78f5e (diff)
downloadorg.eclipse.birt-f042b3f1eae97a316b499d92b87dcda38e9664cd.zip
org.eclipse.birt-f042b3f1eae97a316b499d92b87dcda38e9664cd.tar.gz
org.eclipse.birt-f042b3f1eae97a316b499d92b87dcda38e9664cd.tar.bz2
fix Report fails on valid report item filter expression when using a
cube [46231]
-rw-r--r--data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/filter/AggregationFilterHelper.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/filter/AggregationFilterHelper.java b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/filter/AggregationFilterHelper.java
index 5c677fa..93110c0 100644
--- a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/filter/AggregationFilterHelper.java
+++ b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/filter/AggregationFilterHelper.java
@@ -865,7 +865,10 @@ class AggrFilterDefinition
{
filterHelper = filterEvalHelper;
ICubeFilterDefinition cubeFilter = filterEvalHelper.getCubeFilterDefinition( );
- targetLevel = new DimLevel( cubeFilter.getTargetLevel( ) );
+ if ( cubeFilter.getTargetLevel( ) != null )
+ {
+ targetLevel = new DimLevel( cubeFilter.getTargetLevel( ) );
+ }
aggrLevels = filterEvalHelper.getAggrLevels( );
ILevelDefinition[] axisLevels = cubeFilter.getAxisQualifierLevels( );
if ( axisLevels != null )