From ed32b4f1baeb0e0c19110c0ae857c487e4944ebd Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Fri, 12 Sep 2008 17:04:06 +0000 Subject: [PATCH] polish --- .../webflow/context/servlet/DefaultFlowUrlHandler.java | 4 ++++ 1 file changed, 4 insertions(+) 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); }