Github user pmouawad commented on a diff in the pull request:

    https://github.com/apache/jmeter/pull/397#discussion_r214180268
  
    --- Diff: 
src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java ---
    @@ -574,10 +574,12 @@ protected HTTPSampleResult sample(URL url, String 
method,
                 handleMethod(method, res, httpRequest, localContext);
                 // store the SampleResult in LocalContext to compute connect 
time
                 localContext.setAttribute(CONTEXT_ATTRIBUTE_SAMPLER_RESULT, 
res);
    +            Object proxy = 
jMeterVariables.getObject(HttpClientContext.PROXY_AUTH_STATE + this);
    --- End diff --
    
    When recording , jMeterVariables is null.
    So this code would trigger NPE


---

Reply via email to