Author: michiel
Date: 2009-05-26 13:42:33 +0200 (Tue, 26 May 2009)
New Revision: 35436
Modified:
mmbase/trunk/src/org/mmbase/module/core/MMBase.java
Log:
Feeding oscache a non-existing directory causes NPE. using 'getDataDir' to
avoid it
Modified: mmbase/trunk/src/org/mmbase/module/core/MMBase.java
===================================================================
--- mmbase/trunk/src/org/mmbase/module/core/MMBase.java 2009-05-26 09:46:22 UTC
(rev 35435)
+++ mmbase/trunk/src/org/mmbase/module/core/MMBase.java 2009-05-26 11:42:33 UTC
(rev 35436)
@@ -238,7 +238,7 @@
p.load(is);
}
if (p.getProperty("cache.path") == null ||
"".equals(p.getProperty("cache.path"))) {
- p.setProperty("cache.path", getInitParameter("datadir") +
java.io.File.separator + "oscache");
+ p.setProperty("cache.path", new File(getDataDir(),
"oscache").toString());
}
Class osCache =
Class.forName("com.opensymphony.oscache.web.ServletCacheAdministrator");
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs