diff --git a/spring-webflow/src/main/java/org/springframework/webflow/expression/spel/ScopeSearchingPropertyAccessor.java b/spring-webflow/src/main/java/org/springframework/webflow/expression/spel/ScopeSearchingPropertyAccessor.java index aa2de70c..9967af00 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/expression/spel/ScopeSearchingPropertyAccessor.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/expression/spel/ScopeSearchingPropertyAccessor.java @@ -40,7 +40,7 @@ public class ScopeSearchingPropertyAccessor implements PropertyAccessor { public TypedValue read(EvaluationContext context, Object target, String name) throws AccessException { MutableAttributeMap scope = findScopeForAttribute((RequestContext) target, name); - return (scope != null) ? new TypedValue(scope.get(name)) : null; + return new TypedValue(scope == null ? null : scope.get(name)); } public boolean canWrite(EvaluationContext context, Object target, String name) throws AccessException {