incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1539577 - /sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/DecomposedURL.java
Date Thu, 07 Nov 2013 09:59:35 GMT
Author: bdelacretaz
Date: Thu Nov  7 09:59:34 2013
New Revision: 1539577

URL: http://svn.apache.org/r1539577
Log:
SLING-3006 - guard against null URL

Modified:
    sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/DecomposedURL.java

Modified: sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/DecomposedURL.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/DecomposedURL.java?rev=1539577&r1=1539576&r2=1539577&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/DecomposedURL.java
(original)
+++ sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/DecomposedURL.java
Thu Nov  7 09:59:34 2013
@@ -33,6 +33,10 @@ public class DecomposedURL {
 
     DecomposedURL(String urlString) {
         
+        if(urlString == null) {
+            urlString = "";
+        }
+        
         // For the path, take everything up to the first dot
         String fullPath = urlString;
         if(urlString.contains("http")) {



Mime
View raw message