diff --git a/spring-webflow/src/main/java/org/springframework/webflow/context/servlet/DefaultFlowUrlHandler.java b/spring-webflow/src/main/java/org/springframework/webflow/context/servlet/DefaultFlowUrlHandler.java index f560cc51..cf10ae39 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/context/servlet/DefaultFlowUrlHandler.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/context/servlet/DefaultFlowUrlHandler.java @@ -65,6 +65,10 @@ public class DefaultFlowUrlHandler implements FlowUrlHandler { } public String getFlowId(HttpServletRequest request) { + String pathInfo = request.getPathInfo(); + if (pathInfo == null) { + throw new IllegalStateException("The HttpServletRequest pathInfo is null; unable to extract flowId"); + } return request.getPathInfo().substring(1); }