Author: sebb
Date: Sun Apr 15 12:39:35 2007
New Revision: 529054

URL: http://svn.apache.org/viewvc?view=rev&rev=529054
Log:
Bug 42057 Allow for null connection caused by null method

Modified:
    
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java

Modified: 
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java?view=diff&rev=529054&r1=529053&r2=529054
==============================================================================
--- 
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
 (original)
+++ 
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
 Sun Apr 15 12:39:35 2007
@@ -541,7 +541,9 @@
                } catch (IOException e) {
                        res.sampleEnd();
                        // We don't want to continue using this connection, 
even if KeepAlive is set
-            conn.disconnect();
+            if (conn != null) { // May not exist
+               conn.disconnect();
+            }
             conn=null; // Don't process again
                        return errorResult(e, res);
                } finally {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to