hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1570965 - in /httpcomponents/httpclient/branches/4.3.x: RELEASE_NOTES.txt httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java
Date Sun, 23 Feb 2014 03:15:21 GMT
Author: sebb
Date: Sun Feb 23 03:15:19 2014
New Revision: 1570965

URL: http://svn.apache.org/r1570965
Log:
HTTPCLIENT-1470 CachingExec(ClientExecChain, HttpCache, CacheConfig, AsynchronousValidator)
throws NPE if config is null

Modified:
    httpcomponents/httpclient/branches/4.3.x/RELEASE_NOTES.txt
    httpcomponents/httpclient/branches/4.3.x/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java

Modified: httpcomponents/httpclient/branches/4.3.x/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.3.x/RELEASE_NOTES.txt?rev=1570965&r1=1570964&r2=1570965&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.3.x/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpclient/branches/4.3.x/RELEASE_NOTES.txt Sun Feb 23 03:15:19 2014
@@ -1,3 +1,12 @@
+Changes for 4.3.TBA
+-------------------
+
+Changelog:
+-------------------
+
+* [HTTPCLIENT-1470] CachingExec(ClientExecChain, HttpCache, CacheConfig, AsynchronousValidator)
throws NPE if config is null
+
+
 Release 4.3.3
 -------------------
 

Modified: httpcomponents/httpclient/branches/4.3.x/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.3.x/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java?rev=1570965&r1=1570964&r2=1570965&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.3.x/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java
(original)
+++ httpcomponents/httpclient/branches/4.3.x/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java
Sun Feb 23 03:15:19 2014
@@ -135,10 +135,10 @@ public class CachingExec implements Clie
         this.validityPolicy = new CacheValidityPolicy();
         this.responseGenerator = new CachedHttpResponseGenerator(this.validityPolicy);
         this.cacheableRequestPolicy = new CacheableRequestPolicy();
-        this.suitabilityChecker = new CachedResponseSuitabilityChecker(this.validityPolicy,
config);
+        this.suitabilityChecker = new CachedResponseSuitabilityChecker(this.validityPolicy,
this.cacheConfig);
         this.conditionalRequestBuilder = new ConditionalRequestBuilder();
         this.responseCompliance = new ResponseProtocolCompliance();
-        this.requestCompliance = new RequestProtocolCompliance(config.isWeakETagOnPutDeleteAllowed());
+        this.requestCompliance = new RequestProtocolCompliance(this.cacheConfig.isWeakETagOnPutDeleteAllowed());
         this.responseCachingPolicy = new ResponseCachingPolicy(
                 this.cacheConfig.getMaxObjectSize(), this.cacheConfig.isSharedCache(),
                 this.cacheConfig.isNeverCacheHTTP10ResponsesWithQuery(), this.cacheConfig.is303CachingEnabled());



Mime
View raw message