dims 01/04/24 07:24:38
Modified: src/org/apache/cocoon/transformation Tag: xml-cocoon2
TraxTransformer.java
Log:
Patch for Bug reported by Allan.
Revision Changes Path
No revision
No revision
1.1.2.26 +9 -7
xml-cocoon/src/org/apache/cocoon/transformation/Attic/TraxTransformer.java
Index: TraxTransformer.java
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/transformation/Attic/TraxTransformer.java,v
retrieving revision 1.1.2.25
retrieving revision 1.1.2.26
diff -u -r1.1.2.25 -r1.1.2.26
--- TraxTransformer.java 2001/04/23 22:46:44 1.1.2.25
+++ TraxTransformer.java 2001/04/24 14:24:35 1.1.2.26
@@ -68,7 +68,7 @@
* (Apache Software Foundation, Exoffice Technologies)
* @author <a href="mailto:[EMAIL PROTECTED]">Davanum Srinivas</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version CVS $Revision: 1.1.2.25 $ $Date: 2001/04/23 22:46:44 $
+ * @version CVS $Revision: 1.1.2.26 $ $Date: 2001/04/24 14:24:35 $
*/
public class TraxTransformer extends ContentHandlerWrapper
implements Transformer, Composable, Recyclable, Configurable, Cacheable,
Disposable {
@@ -140,12 +140,14 @@
// Stored is an array of the template and the caching time
if (store.containsKey(xsluri) == true) {
Object[] templateAndTime = (Object[])store.get(xsluri);
- File xslFile = new File(systemID.substring(FILE.length()));
- long storedTime = ((Long)templateAndTime[1]).longValue();
- if (storedTime < xslFile.lastModified()) {
- templates = null;
- } else {
- templates = (Templates)templateAndTime[0];
+ if(templateAndTime != null) {
+ File xslFile = new
File(systemID.substring(FILE.length()));
+ long storedTime = ((Long)templateAndTime[1]).longValue();
+ if (storedTime < xslFile.lastModified()) {
+ templates = null;
+ } else {
+ templates = (Templates)templateAndTime[0];
+ }
}
}
} else {
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]