cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@cup.hp.com>
Subject [C2.1] MRUMemoryStore patch
Date Tue, 09 Oct 2001 21:20:43 GMT
The following patch handles the case when the key is null in the
remove() method of MRUMemoryStore.

Index: src/org/apache/cocoon/components/store/MRUMemoryStore.java
===================================================================
RCS file: /Repository/Cocoon2/src/org/apache/cocoon/components/store/MRUMemoryStore.java,v
retrieving revision 1.1.1.7
diff -u -I'\$Id:.*\$' -I'\$Author:.*\$' -I'\$Revision:.*\$' -r1.1.1.7 MRUMemoryStore.java
--- MRUMemoryStore.java	2001/09/12 18:51:25	1.1.1.7
+++ MRUMemoryStore.java	2001/10/09 21:18:25
@@ -270,7 +270,7 @@
     getLogger().debug("Removing object from store");
     this.cache.remove(key);
     this.mrulist.remove(key);
-    if(this.filesystem) {
+    if(this.filesystem && key != null) {
       this.fsstore.remove(getFileName(key.toString()));
     }
   }


Regards,
-- 
Ovidiu Predescu <ovidiu@cup.hp.com>
http://orion.rgv.hp.com/ (inside HP's firewall only)
http://sourceforge.net/users/ovidiu/ (my SourceForge page)
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message