db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henn...@apache.org
Subject cvs commit: db-torque/src/generator/src/java/org/apache/torque/engine/database/model Table.java
Date Mon, 13 Dec 2004 16:32:09 GMT
henning     2004/12/13 08:32:09

  Modified:    src/generator/src/java/org/apache/torque/engine/database/model
                        Tag: TORQUE_3_1_BRANCH Table.java
  Log:
  Make sure, that the setCorrectGetters() method accepts "null" as input
  value and does not throw NPE.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.6   +2 -2      db-torque/src/generator/src/java/org/apache/torque/engine/database/model/Table.java
  
  Index: Table.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/database/model/Table.java,v
  retrieving revision 1.3.2.5
  retrieving revision 1.3.2.6
  diff -u -r1.3.2.5 -r1.3.2.6
  --- Table.java	30 Oct 2004 12:10:31 -0000	1.3.2.5
  +++ Table.java	13 Dec 2004 16:32:09 -0000	1.3.2.6
  @@ -1172,7 +1172,7 @@
        */
       public void setCorrectGetters(Boolean value)
       {
  -        boolean correctGetters = value.booleanValue();
  +        boolean correctGetters = value != null && value.booleanValue();
           for (Iterator it = columnList.iterator(); it.hasNext(); )
           {
               Column col = (Column) it.next();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message