From 89335e86da86254c65c8ecd478b7ee3e715c93a4 Mon Sep 17 00:00:00 2001 From: Jeremy Grelle Date: Tue, 15 Apr 2008 15:49:11 +0000 Subject: [PATCH] SWF-594 - NullPointerException in ProgressiveCommandButton --- .../org/springframework/faces/ui/ProgressiveCommandButton.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-faces/src/main/java/org/springframework/faces/ui/ProgressiveCommandButton.java b/spring-faces/src/main/java/org/springframework/faces/ui/ProgressiveCommandButton.java index 04effa7f..96d22df7 100644 --- a/spring-faces/src/main/java/org/springframework/faces/ui/ProgressiveCommandButton.java +++ b/spring-faces/src/main/java/org/springframework/faces/ui/ProgressiveCommandButton.java @@ -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")); } }