Minor - Fixed NPE.

This commit is contained in:
Heng Sin Low 2012-12-03 18:08:25 +08:00
parent 14f3e0b0ff
commit 690d7bdb8f
1 changed files with 3 additions and 3 deletions

View File

@ -588,14 +588,14 @@ public abstract class PO
log.log(Level.WARNING, "Index invalid - " + index);
return false;
}
Object newval = m_newValues[index];
if (newval == null)
return false;
Object newval = m_newValues[index];
if (newval == Null.NULL)
newval = null;
Object oldval = m_oldValues[index];
if (newval == null && oldval == null)
return false;
if (newval == null)
return false;
return !newval.equals(oldval);
} // is_ValueChanged