Author: sebb
Date: Sun Sep 25 22:04:25 2011
New Revision: 1175596
URL: http://svn.apache.org/viewvc?rev=1175596&view=rev
Log:
Qualify null parameter type to avoid Gump failure which is caused by new method
to be introduced in 4.2
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java?rev=1175596&r1=1175595&r2=1175596&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
(original)
+++
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
Sun Sep 25 22:04:25 2011
@@ -823,7 +823,7 @@ public class HTTPHC4Impl extends HTTPHCA
}
}
- FileEntity fileRequestEntity = new FileEntity(new
File(file.getPath()),null);
+ FileEntity fileRequestEntity = new FileEntity(new
File(file.getPath()),(String) null);// TODO is null correct?
post.setEntity(fileRequestEntity);
// We just add placeholder text for file content
@@ -977,7 +977,7 @@ public class HTTPHC4Impl extends HTTPHCA
hasPutBody = true;
// If getSendFileAsPostBody returned true, it's sure that file is
not null
- FileEntity fileRequestEntity = new FileEntity(new
File(files[0].getPath()),null);
+ FileEntity fileRequestEntity = new FileEntity(new
File(files[0].getPath()), (String) null); // TODO is null correct?
put.setEntity(fileRequestEntity);
// We just add placeholder text for file content
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]