You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2005/04/08 22:33:08 UTC
cvs commit: jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler HTTPSamplerBase.java
sebb 2005/04/08 13:33:08
Modified: src/protocol/http/org/apache/jmeter/protocol/http/sampler
HTTPSamplerBase.java
Log:
Only create HTTPSampleResult if needed
Revision Changes Path
1.10 +2 -2 jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Index: HTTPSamplerBase.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- HTTPSamplerBase.java 18 Mar 2005 15:26:55 -0000 1.9
+++ HTTPSamplerBase.java 8 Apr 2005 20:33:08 -0000 1.10
@@ -577,7 +577,7 @@
*/
public SampleResult sample()
{
- HTTPSampleResult res = new HTTPSampleResult();
+ SampleResult res = null;
try
{
res= sample(getUrl(), getMethod(), false, 0);
@@ -586,7 +586,7 @@
}
catch (MalformedURLException e)
{
- return errorResult(e, res);
+ return errorResult(e, new HTTPSampleResult());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org