[seam-commits] Seam SVN: r8692 - trunk/src/main/org/jboss/seam/web.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Aug 15 04:04:58 EDT 2008
Author: christian.bauer at jboss.com
Date: 2008-08-15 04:04:58 -0400 (Fri, 15 Aug 2008)
New Revision: 8692
Modified:
trunk/src/main/org/jboss/seam/web/AbstractFilter.java
Log:
Fixed NPE
Modified: trunk/src/main/org/jboss/seam/web/AbstractFilter.java
===================================================================
--- trunk/src/main/org/jboss/seam/web/AbstractFilter.java 2008-08-15 07:23:25 UTC (rev 8691)
+++ trunk/src/main/org/jboss/seam/web/AbstractFilter.java 2008-08-15 08:04:58 UTC (rev 8692)
@@ -97,8 +97,9 @@
{
return true;
}
-
- String path = ((HttpServletRequest) request).getRequestURI().replaceFirst(servletContext.getContextPath(), "");
+
+ HttpServletRequest httpRequest = (HttpServletRequest)request;
+ String path = httpRequest.getRequestURI().replaceFirst(httpRequest.getServletPath(), "");
String urlPattern = getUrlPattern();
Pattern regexPattern = getPattern();
if (urlPattern != null)
More information about the seam-commits
mailing list