diff --git a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java index 983575fc..3fbb00f2 100644 --- a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java +++ b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java @@ -120,7 +120,7 @@ public class JsfViewFactory implements ViewFactory { } private boolean viewAlreadySet(FacesContext facesContext) { - if (facesContext.getViewRoot() != null && facesContext.getViewRoot() != null) { + if (facesContext.getViewRoot() != null) { // the corner case where a before RESTORE_VIEW PhaseListener has handled setting the UIViewRoot return true; } else {