cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/binding RepeaterJXPathBinding.java
Date Wed, 03 Mar 2004 12:30:18 GMT
antonio     2004/03/03 04:30:18

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody/binding
                        RepeaterJXPathBinding.java
  Log:
  Avoid NPE in RepeaterJXPathBinding Constructor
  
  Revision  Changes    Path
  1.22      +5 -3      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/binding/RepeaterJXPathBinding.java
  
  Index: RepeaterJXPathBinding.java
  ===================================================================
  RCS file: /home/cvs//cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/binding/RepeaterJXPathBinding.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- RepeaterJXPathBinding.java	2 Mar 2004 18:48:18 -0000	1.21
  +++ RepeaterJXPathBinding.java	3 Mar 2004 12:30:18 -0000	1.22
  @@ -147,8 +147,10 @@
                   JXPathBindingBuilderBase.CommonAttributes.DEFAULT,
                   uniqueRowId, uniqueRowPath, convertor, convertorLocale));
           }
  -        for (int i=0; i < uniqueBindings.length; i++) {
  -            uniqueRowBinding.add(uniqueBindings[i]);
  +        if (uniqueBindings != null) {
  +            for (int i=0; i < uniqueBindings.length; i++) {
  +                uniqueRowBinding.add(uniqueBindings[i]);
  +            }
           }
           /*this.uniqueRowBinding = new ComposedJXPathBindingBase(
                   JXPathBindingBuilderBase.CommonAttributes.DEFAULT,
  
  
  

Mime
View raw message