Heng Sin Low 2009-06-01 10:00:21 +00:00
parent 57a1b276b7
commit d6c6c60fcc
1 changed files with 6 additions and 4 deletions

View File

@ -3202,20 +3202,22 @@ public class GridTable extends AbstractTableModel
if (hasUpdated) {
Timestamp memUpdated = null;
memUpdated = (Timestamp) getValueAt(row, colUpdated);
// compare with the old value instead of the current value
memUpdated = (Timestamp) getOldValue(row, colUpdated);
if (! memUpdated.equals(dbUpdated))
if (memUpdated != null && ! memUpdated.equals(dbUpdated))
return true;
}
if (hasProcessed) {
Boolean memProcessed = null;
memProcessed = (Boolean) getValueAt(row, colProcessed);
// compare with the old value instead of the current value
memProcessed = (Boolean) getOldValue(row, colProcessed);
Boolean dbProcessed = Boolean.TRUE;
if (! dbProcessedS.equals("Y"))
dbProcessed = Boolean.FALSE;
if (! memProcessed.equals(dbProcessed))
if (memProcessed != null && ! memProcessed.equals(dbProcessed))
return true;
}
}