You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2014/02/23 04:08:19 UTC
[jira] [Commented] (HTTPCLIENT-1470) CachingExec(ClientExecChain
backend, HttpCache cache, CacheConfig config, AsynchronousValidator
asynchRevalidator) NPE if config is null
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13909656#comment-13909656 ]
Sebb commented on HTTPCLIENT-1470:
----------------------------------
URL: http://svn.apache.org/r1570963
Log:
HTTPCLIENT-1470 CachingExec(ClientExecChain, HttpCache, CacheConfig, AsynchronousValidator) throws NPE if config is null
Modified:
httpcomponents/httpclient/trunk/RELEASE_NOTES.txt
httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java
httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestRFC5861Compliance.java
> CachingExec(ClientExecChain backend, HttpCache cache, CacheConfig config, AsynchronousValidator asynchRevalidator) NPE if config is null
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-1470
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1470
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpCache
> Affects Versions: 4.3.2, 4.4 Alpha1
> Reporter: Sebb
> Fix For: 4.4 Alpha1
>
>
> The ctor CachingExec(ClientExecChain backend, HttpCache cache, CacheConfig config, AsynchronousValidator asynchRevalidator) will throw NPE if config is null.
> It allows config to be null, and defaults to CacheConfig.DEFAULT.
> However it then proceeds to re-use the config parameter rather than the instance field it has just set up.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org