db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peng_c...@freddiemac.com
Subject A bug in org.apache.torque.engine.database.model.Database.java
Date Mon, 04 Aug 2003 23:22:35 GMT
Line 464 to 470 is as follows:

                    if (foreign == null)
                    {
                        System.out.println("ERROR!! Attempt to set 
foreign"
                                + " key to nonexistent column, "
                                + foreign.getName() + ", in table, "
                                + foreignTable.getName() + "!");
                    }

If the condition is ever true, foreign.getName() would give you a 
NullPointerException.

Peng
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message