abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r431448 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java
Date Mon, 14 Aug 2006 22:29:15 GMT
Author: jmsnell
Date: Mon Aug 14 15:29:14 2006
New Revision: 431448

URL: http://svn.apache.org/viewvc?rev=431448&view=rev
Log:
check for null input to parseCacheControl(String,ResponseBase)

Modified:
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java?rev=431448&r1=431447&r2=431448&view=diff
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java
Mon Aug 14 15:29:14 2006
@@ -64,6 +64,7 @@
   public static void parseCacheControl(
     String cc, 
     ResponseBase response) {
+      if (cc == null) return;
       CacheControlParser parser = new CacheControlParser(cc);
       response.setNoCache(false);
       response.setNoStore(false);



Mime
View raw message