incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1075363 - /sling/trunk/testing/junit/core/src/main/java/org/apache/sling/junit/RequestParser.java
Date Mon, 28 Feb 2011 15:04:26 GMT
Author: bdelacretaz
Date: Mon Feb 28 15:04:26 2011
New Revision: 1075363

URL: http://svn.apache.org/viewvc?rev=1075363&view=rev
Log:
SLING-1963 - guard against null values

Modified:
    sling/trunk/testing/junit/core/src/main/java/org/apache/sling/junit/RequestParser.java

Modified: sling/trunk/testing/junit/core/src/main/java/org/apache/sling/junit/RequestParser.java
URL: http://svn.apache.org/viewvc/sling/trunk/testing/junit/core/src/main/java/org/apache/sling/junit/RequestParser.java?rev=1075363&r1=1075362&r2=1075363&view=diff
==============================================================================
--- sling/trunk/testing/junit/core/src/main/java/org/apache/sling/junit/RequestParser.java
(original)
+++ sling/trunk/testing/junit/core/src/main/java/org/apache/sling/junit/RequestParser.java
Mon Feb 28 15:04:26 2011
@@ -40,9 +40,9 @@ public class RequestParser implements Te
     /** Build from pre-parsed values */
     public RequestParser(HttpServletRequest request, String testSelector, String outputExtension,
String testMethodName) {
         this.request = request;
-        this.testNameSelector = testSelector;
-        this.extension = outputExtension;
-        this.selectedMethodName = testMethodName;
+        this.testNameSelector = testSelector == null ? "" : testSelector;
+        this.extension = outputExtension == null ? "" : outputExtension;
+        this.selectedMethodName = testMethodName == null ? "" : testMethodName;
     }
     
     RequestParser(String [] s, HttpServletRequest request) {



Mime
View raw message