You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2006/04/14 19:30:52 UTC
svn commit: r394148 -
/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/AddResourceFactory.java
Author: imario
Date: Fri Apr 14 10:30:50 2006
New Revision: 394148
URL: http://svn.apache.org/viewcvs?rev=394148&view=rev
Log:
avoid NPE in case one mapped the extensionsFilter to a servlet-name only
Modified:
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/AddResourceFactory.java
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/AddResourceFactory.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/AddResourceFactory.java?rev=394148&r1=394147&r2=394148&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/AddResourceFactory.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/renderkit/html/util/AddResourceFactory.java Fri Apr 14 10:30:50 2006
@@ -358,7 +358,7 @@
protected static boolean checkFilterPattern(FilterMapping filterMapping)
{
- if (VALID_EXTFLT_PATH.contains(filterMapping.getUrlPattern()))
+ if (filterMapping.getUrlPattern() != null && VALID_EXTFLT_PATH.contains(filterMapping.getUrlPattern()))
{
return true;
}