You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ovidiu Predescu <ov...@cup.hp.com> on 2001/10/09 23:20:43 UTC
[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/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 <ov...@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
AW: [C2.1] MRUMemoryStore patch
Posted by Carsten Ziegeler <cz...@sundn.de>.
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 <ov...@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