Author: fschumacher
Date: Sat May 25 15:20:26 2019
New Revision: 1859989
URL: http://svn.apache.org/viewvc?rev=1859989&view=rev
Log:
Fix NPE on saving proxy auth state
Relates to #397
Bugzilla Id: 62672
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
URL:
http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java?rev=1859989&r1=1859988&r2=1859989&view=diff
==============================================================================
---
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
(original)
+++
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
Sat May 25 15:20:26 2019
@@ -708,7 +708,9 @@ public class HTTPHC4Impl extends HTTPHCA
private void saveProxyAuth(
MutableTriple<CloseableHttpClient, AuthState,
PoolingHttpClientConnectionManager> triple,
HttpContext localContext) {
- triple.setMiddle((AuthState)
localContext.getAttribute(HttpClientContext.PROXY_AUTH_STATE));
+ if (triple != null) {
+ triple.setMiddle((AuthState)
localContext.getAttribute(HttpClientContext.PROXY_AUTH_STATE));
+ }
}
/**