summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-07-06 04:08:23 (EDT)
committer dgao2012-07-06 04:20:33 (EDT)
commitb3b29e31fbe9cb93066724f9421d4dc5946f5f6d (patch)
tree29ea6bfbc9cbb25d999c4790497e40fc9684f9d6
parent0955fe3ad2fb4ed544d6b6f8c5cd47c3f67ccb8b (diff)
downloadorg.eclipse.birt-b3b29e31fbe9cb93066724f9421d4dc5946f5f6d.zip
org.eclipse.birt-b3b29e31fbe9cb93066724f9421d4dc5946f5f6d.tar.gz
org.eclipse.birt-b3b29e31fbe9cb93066724f9421d4dc5946f5f6d.tar.bz2
Null check on the selected format choice.
-rw-r--r--UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java b/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
index 685c7f1..e1386a9 100644
--- a/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
+++ b/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
@@ -4058,6 +4058,10 @@ public class ParameterDialog extends BaseTitleAreaDialog
{
return;
}
+ if(choiceSet.findChoice( formatCategroy ) == null)
+ {
+ return;
+ }
displayFormat = choiceSet.findChoice( formatCategroy )
.getDisplayName( );
if ( ParameterUtil.isCustomCategory( formatCategroy ) )
@@ -4630,4 +4634,4 @@ public class ParameterDialog extends BaseTitleAreaDialog
refreshStaticValueTable( );
}
}
-} \ No newline at end of file
+}