cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/binding RepeaterJXPathBinding.java
Date Mon, 15 Mar 2004 21:57:26 GMT
joerg       2004/03/15 13:57:26

  Modified:    src/blocks/forms/java/org/apache/cocoon/forms/binding
                        RepeaterJXPathBinding.java
  Log:
  avoid NPE
  
  Revision  Changes    Path
  1.3       +5 -1      cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/binding/RepeaterJXPathBinding.java
  
  Index: RepeaterJXPathBinding.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/binding/RepeaterJXPathBinding.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RepeaterJXPathBinding.java	12 Mar 2004 03:31:39 -0000	1.2
  +++ RepeaterJXPathBinding.java	15 Mar 2004 21:57:26 -0000	1.3
  @@ -95,6 +95,10 @@
               throws BindingException {
           // Find the repeater
           Repeater repeater = (Repeater) frmModel.getWidget(this.repeaterId);
  +        if (repeater == null) {
  +            throw new BindingException("The repeater with the ID [" + this.repeaterId
  +                    + "] referenced in the binding does not exist in the form definition.");
  +        }
           repeater.removeRows();
           int initialSize = repeater.getSize();
   
  
  
  

Mime
View raw message