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/transform XmlToData.java
Date Mon, 28 Jul 2003 09:09:43 GMT
henning     2003/07/28 02:09:42

  Modified:    src/generator/src/java/org/apache/torque/engine/database/transform
                        XmlToData.java
  Log:
  Yet another cause of NPEs squashed
  
  Revision  Changes    Path
  1.5       +6 -1      db-torque/src/generator/src/java/org/apache/torque/engine/database/transform/XmlToData.java
  
  Index: XmlToData.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/database/transform/XmlToData.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XmlToData.java	25 Jul 2003 16:39:07 -0000	1.4
  +++ XmlToData.java	28 Jul 2003 09:09:42 -0000	1.5
  @@ -161,6 +161,11 @@
               else
               {
                   Table table = database.getTableByJavaName(rawName);
  +
  +                if (table == null)
  +                {
  +                    throw new SAXException("Table " + rawName + " unknown.");
  +                }
                   List columnValues = new ArrayList();
                   for (int i = 0; i < attributes.getLength(); i++)
                   {
  
  
  

---------------------------------------------------------------------
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