fixed a NPE on setting date of birth via admin functions

This commit is contained in:
Eric J. Bowersox 2004-11-01 03:58:59 +00:00
parent 1ed48dd63a
commit 28d09ea769

View File

@ -753,8 +753,8 @@ class AdminUserContextImpl implements AdminUserContext
PreparedStatement stmt = null; PreparedStatement stmt = null;
AuditRecord ar = null; AuditRecord ar = null;
if (date.equals(m_dob)) if (((date==null) && (m_dob==null)) || ((date!=null) && (m_dob!=null) && date.equals(m_dob)))
return; return; // equal dates
try try
{ // retrieve a connection from the data pool { // retrieve a connection from the data pool