mpoeschl 2003/01/01 06:02:27 Modified: src/java/org/apache/torque/engine/database/model Database.java Log: TRQS104: Use of null object Revision Changes Path 1.19 +3 -4 jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/Database.java Index: Database.java =================================================================== RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/Database.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- Database.java 15 Dec 2002 13:41:32 -0000 1.18 +++ Database.java 1 Jan 2003 14:02:27 -0000 1.19 @@ -434,15 +434,14 @@ while (localColumnNames.hasNext()) { Column local = currTable - .getColumn((String)localColumnNames.next()); + .getColumn((String) localColumnNames.next()); // give notice of a schema inconsistency. // note we do not prevent the npe as there is nothing // that we can do, if it is to occur. if (local == null) { System.out.println("ERROR!! Attempt to define foreign" - + " key with nonexistent column, " - + local.getName() + ", in table, " + + " key with nonexistent column in table, " + currTable.getName() + "!"); } //check for foreign pk's