cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/acting AbstractDatabaseAction.java
Date Wed, 07 Mar 2001 20:49:55 GMT
bloritsch    01/03/07 12:49:55

  Modified:    src/org/apache/cocoon/acting Tag: xml-cocoon2
                        AbstractDatabaseAction.java
  Log:
  Corrected Null handling.  Sometimes I have broccoli for brains.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.14  +2 -2      xml-cocoon/src/org/apache/cocoon/acting/Attic/AbstractDatabaseAction.java
  
  Index: AbstractDatabaseAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/acting/Attic/AbstractDatabaseAction.java,v
  retrieving revision 1.1.2.13
  retrieving revision 1.1.2.14
  diff -u -r1.1.2.13 -r1.1.2.14
  --- AbstractDatabaseAction.java	2001/03/07 20:44:22	1.1.2.13
  +++ AbstractDatabaseAction.java	2001/03/07 20:49:50	1.1.2.14
  @@ -168,7 +168,7 @@
    * </table>
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.1.2.13 $ $Date: 2001/03/07 20:44:22 $
  + * @version CVS $Revision: 1.1.2.14 $ $Date: 2001/03/07 20:49:50 $
    */
   public abstract class AbstractDatabaseAction extends AbstractComplimentaryConfigurableAction
implements Configurable {
       protected Map files = new HashMap();
  @@ -230,7 +230,7 @@
           String attribute = entry.getAttribute("param", "");
           String value = request.getParameter(attribute);
   
  -        if ("".equals(value.trim())) {
  +        if (value == null || "".equals(value.trim())) {
               switch (typeObject.intValue()) {
                   case Types.DISTINCT:
                       statement.setNull(position, Types.BINARY);
  
  
  

Mime
View raw message