shuber 2004/08/16 15:40:13 CEST
Modified files: (Branch: JAHIA-4-0-BRANCH)
src/java/org/jahia/services/webdav/stores CachedStore.java
Log:
Bugfix : corrected NPE that caused the WebDAV operations to fail silently.
Revision Changes Path
1.7.4.5 +7 -1 jahia/src/java/org/jahia/services/webdav/stores/CachedStore.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/src/java/org/jahia/services/webdav/stores/CachedStore.java.diff?r1=1.7.4.4&r2=1.7.4.5&f=h
Index: CachedStore.java
===================================================================
RCS file:
/home/cvs/repository/jahia/src/java/org/jahia/services/webdav/stores/Attic/CachedStore.java,v
retrieving revision 1.7.4.4
retrieving revision 1.7.4.5
diff -u -r1.7.4.4 -r1.7.4.5
--- CachedStore.java 3 Aug 2004 13:26:33 -0000 1.7.4.4
+++ CachedStore.java 16 Aug 2004 13:40:13 -0000 1.7.4.5
@@ -749,7 +749,13 @@
if ("o".equals(keyPrefix)) {
// let's look for the parent entry and flush it from the cache.
Uri parentUri = uri.getParentUri();
- internalCache.remove("o" + parentUri.getNamespace().getName() +
parentUri.toString());
+ if (parentUri != null) {
+ logger.debug("Flusing parent entry : [" + "o" +
+ parentUri.getNamespace().getName() +
+ parentUri.toString() + "]");
+ internalCache.remove("o" + parentUri.getNamespace().getName() +
+ parentUri.toString());
+ }
}
}