From 28d09ea76989f6e1b975f5b4b80db55154eae9c0 Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Mon, 1 Nov 2004 03:58:59 +0000 Subject: [PATCH] fixed a NPE on setting date of birth via admin functions --- .../silverwrist/venice/core/impl/AdminUserContextImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/silverwrist/venice/core/impl/AdminUserContextImpl.java b/src/com/silverwrist/venice/core/impl/AdminUserContextImpl.java index f2e5c18..694b96c 100644 --- a/src/com/silverwrist/venice/core/impl/AdminUserContextImpl.java +++ b/src/com/silverwrist/venice/core/impl/AdminUserContextImpl.java @@ -753,8 +753,8 @@ class AdminUserContextImpl implements AdminUserContext PreparedStatement stmt = null; AuditRecord ar = null; - if (date.equals(m_dob)) - return; + if (((date==null) && (m_dob==null)) || ((date!=null) && (m_dob!=null) && date.equals(m_dob))) + return; // equal dates try { // retrieve a connection from the data pool