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); log.log(Level.WARNING, "Index invalid - " + index);
return false; return false;
} }
Object newval = m_newValues[index]; Object newval = m_newValues[index];
if (newval == null)
return false;
if (newval == Null.NULL) if (newval == Null.NULL)
newval = null; newval = null;
Object oldval = m_oldValues[index]; Object oldval = m_oldValues[index];
if (newval == null && oldval == null) if (newval == null && oldval == null)
return false; return false;
if (newval == null)
return false;
return !newval.equals(oldval); return !newval.equals(oldval);
} // is_ValueChanged } // is_ValueChanged