cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/modules/input SimpleMappingMetaModule.java
Date Sun, 15 Feb 2004 19:09:38 GMT
haul        2004/02/15 11:09:38

  Modified:    src/java/org/apache/cocoon/components/modules/input
                        SimpleMappingMetaModule.java
  Log:
  handle empty configuration similar to not existing configuration
  
  Revision  Changes    Path
  1.3       +4 -4      cocoon-2.1/src/java/org/apache/cocoon/components/modules/input/SimpleMappingMetaModule.java
  
  Index: SimpleMappingMetaModule.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/modules/input/SimpleMappingMetaModule.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SimpleMappingMetaModule.java	17 May 2003 06:01:25 -0000	1.2
  +++ SimpleMappingMetaModule.java	15 Feb 2004 19:09:38 -0000	1.3
  @@ -175,7 +175,7 @@
           String rmPrefix = this.rmPrefix;
           String rmSuffix = this.rmSuffix;
   
  -        if (modeConf!=null) {
  +        if (modeConf!=null && modeConf.getChildren().length > 0) {
               inputName   = modeConf.getChild("input-module").getAttribute("name",null);
               if (inputName != null) {
                   inputConfig = modeConf.getChild("input-module");
  @@ -236,7 +236,7 @@
           String rmPrefix = this.rmPrefix;
           String rmSuffix = this.rmSuffix;
   
  -        if (modeConf!=null) {
  +        if (modeConf!=null && modeConf.getChildren().length > 0) {
               inputName   = modeConf.getChild("input-module").getAttribute("name",null);
               if (inputName != null) {
                   inputConfig = modeConf.getChild("input-module");
  @@ -293,7 +293,7 @@
           String suffix = this.suffix;
           String rmPrefix = this.rmPrefix;
           String rmSuffix = this.rmSuffix;
  -        if (modeConf!=null) {
  +        if (modeConf!=null && modeConf.getChildren().length > 0) {
               inputName   = modeConf.getChild("input-module").getAttribute("name",null);
               if (inputName != null) {
                   inputConfig = modeConf.getChild("input-module");
  
  
  

Mime
View raw message