summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-09-05 04:24:53 (EDT)
committer dgao2012-09-05 04:24:53 (EDT)
commita1ef891d9b75306641a53d480891e2b20463b0ae (patch)
treec18963798fbc50693174bc6ea908a35fcecd4e87
parent50f8058a800f60d619118d2ecd300797d155c178 (diff)
downloadorg.eclipse.birt-a1ef891d9b75306641a53d480891e2b20463b0ae.zip
org.eclipse.birt-a1ef891d9b75306641a53d480891e2b20463b0ae.tar.gz
org.eclipse.birt-a1ef891d9b75306641a53d480891e2b20463b0ae.tar.bz2
Perform a null check.
-rw-r--r--xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java b/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java
index f62d2ca..dcbb1de 100644
--- a/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java
+++ b/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java
@@ -1367,7 +1367,7 @@ public class CrosstabBindingDialogHelper extends AbstractBindingDialogHelper
CubeHandle cube = crosstab.getCube( );
if(cube == null)
{
- return null;
+ return new String[0];
}
List list = cube.getPropertyHandle( ICubeModel.DIMENSIONS_PROP )
.getContents( );
@@ -2447,6 +2447,11 @@ public class CrosstabBindingDialogHelper extends AbstractBindingDialogHelper
return;
}
}
+ else
+ {
+ dialog.setCanFinish( false );
+ return;
+ }
}
dialogCanFinish( );
}