SWF-594 - NullPointerException in ProgressiveCommandButton

This commit is contained in:
Jeremy Grelle
2008-04-15 15:49:11 +00:00
parent ede6e722db
commit 89335e86da

View File

@@ -70,7 +70,7 @@ public class ProgressiveCommandButton extends UICommand {
&& context.getCurrentState() instanceof TransitionableState) {
TransitionDefinition transition = ((TransitionableState) context.getCurrentState())
.getTransition(getActionExpression().getExpressionString());
if (transition.getAttributes().contains("bind")) {
if (transition != null && transition.getAttributes().contains("bind")) {
return Boolean.FALSE.equals(transition.getAttributes().getBoolean("bind"));
}
}