myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject svn commit: r1811683 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ResourceHandlerImpl.java
Date Tue, 10 Oct 2017 12:00:40 GMT
Author: tandraschko
Date: Tue Oct 10 12:00:40 2017
New Revision: 1811683

URL: http://svn.apache.org/viewvc?rev=1811683&view=rev
Log:
MYFACES-4065 Did not handled empty string while creating the resource

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ResourceHandlerImpl.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ResourceHandlerImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ResourceHandlerImpl.java?rev=1811683&r1=1811682&r2=1811683&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ResourceHandlerImpl.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ResourceHandlerImpl.java
Tue Oct 10 12:00:40 2017
@@ -115,6 +115,10 @@ public class ResourceHandlerImpl extends
     {
         Resource resource = null;
         
+        if (resourceName == null || resourceName.length() == 0) 
+        {
+            return null;
+        }
         if (resourceName.charAt(0) == '/')
         {
             // If resourceName starts with '/', remove that character because it



Mime
View raw message