cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: [C2.1] MRUMemoryStore patch
Date Wed, 10 Oct 2001 09:31:51 GMT
Thanks for your patch, Ovidiu!

It's also applied.


Carsten 

Open Source Group                        sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                          mailto: cziegeler@sundn.de 
================================================================


> -----Ursprungliche Nachricht-----
> Von: ovidiu@orion.rgv.hp.com [mailto:ovidiu@orion.rgv.hp.com]Im Auftrag
> von Ovidiu Predescu
> Gesendet: Dienstag, 9. Oktober 2001 23:21
> An: cocoon-dev@xml.apache.org
> Betreff: [C2.1] MRUMemoryStore patch
> 
> 
> 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/MRUMemo
> ryStore.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
> 

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


Mime
View raw message