Bug 58453 - Null pointer exception when disabling Capture HTTP Headers

Bugzilla Id: 58453

git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1705003 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: ae1183f3e9
This commit is contained in:
Philippe Mouawad 2015-09-24 06:54:55 +00:00
parent 0ea6a48fb1
commit 947b40623b
2 changed files with 3 additions and 2 deletions

View File

@ -289,7 +289,7 @@ public class Proxy extends Thread {
children.addAll(samplerCreator.createChildren(sampler, result));
}
target.deliverSampler(sampler,
children.isEmpty() ? null : (TestElement[]) children
children
.toArray(new TestElement[children.size()]),
result);
}
@ -550,7 +550,7 @@ public class Proxy extends Thread {
}
StringBuilder sb = new StringBuilder(headers.length());
for (String line : headerLines) {
if (line != null) {
if (line != null){
sb.append(line).append(CRLF_STRING);
}
}

View File

@ -149,6 +149,7 @@ Summary
<li><bug>57956</bug>The hc.parameters reference in jmeter.properties doesn't work when JMeter is not started in bin.</li>
<li><bug>58137</bug>JMeter fails to download embedded URLS that contain illegal characters in URL (it does not escape them).</li>
<li><bug>58201</bug>Make usage of port in the host header more consistent across the different http samplers.</li>
<li><bug>58453</bug>HTTP Test Script Recorder : NullPointerException when disabling Capture HTTP Headers </li>
</ul>
<h3>Other Samplers</h3>