cziegeler 01/10/16 08:33:38
Modified: src/org/apache/cocoon/components/source
SourceHandlerImpl.java
Log:
Fixed compilation error
Revision Changes Path
1.9 +3 -3
xml-cocoon2/src/org/apache/cocoon/components/source/SourceHandlerImpl.java
Index: SourceHandlerImpl.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/source/SourceHandlerImpl.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- SourceHandlerImpl.java 2001/10/16 13:45:17 1.8
+++ SourceHandlerImpl.java 2001/10/16 15:33:38 1.9
@@ -35,7 +35,7 @@
/**
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version $Id: SourceHandlerImpl.java,v 1.8 2001/10/16 13:45:17 cziegeler
Exp $
+ * @version $Id: SourceHandlerImpl.java,v 1.9 2001/10/16 15:33:38 cziegeler
Exp $
*/
public final class SourceHandlerImpl
extends AbstractLoggable
@@ -158,7 +158,7 @@
throws ProcessingException {
try {
this.sourceFactories.put(protocol, factory);
- this.init(factory);
+ this.init(factory, null);
} catch (ComponentException e) {
throw new ProcessingException("cannot initialize factory: " +
factory, e);
} catch (ContextException e) {
@@ -182,7 +182,7 @@
if (factory instanceof Composable) {
((Composable) factory).compose(this.manager);
}
- if (factory instanceof Configurable) {
+ if (config != null && factory instanceof Configurable) {
((Configurable) factory).configure(config);
}
}
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]