jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1445332 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
Date Tue, 12 Feb 2013 20:17:23 GMT
Author: pmouawad
Date: Tue Feb 12 20:17:22 2013
New Revision: 1445332

URL: http://svn.apache.org/r1445332
Log:
Change as per sebb remark

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java?rev=1445332&r1=1445331&r2=1445332&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java Tue Feb
12 20:17:22 2013
@@ -175,7 +175,7 @@ public class Proxy extends Thread {
         SampleResult result = null;
         HeaderManager headers = null;
         HTTPSamplerBase sampler = null;
-        String[] param = null;
+        String[] param = new String[0];
         try {
             // Now, parse only first line
             request.parse(new BufferedInputStream(clientSocket.getInputStream()));
@@ -230,7 +230,7 @@ public class Proxy extends Thread {
             result = generateErrorResult(result, e); // Generate result (if nec.) and populate
it
         } catch (IOException ioe) {
             log.error("Problem with SSL certificate? Ensure browser is set to accept the
JMeter proxy cert: "+ioe.getLocalizedMessage()+" for url:" +
-                    (param != null && param.length>0 ?  param[0] : ""), ioe);
+                    (param.length>0 ?  param[0] : ""), ioe);
             // won't work: writeErrorToClient(HttpReplyHdr.formInternalError());
             if (result == null) {
                 result = new SampleResult();



Mime
View raw message