From d2b06ee1f9fcc42be83f04f64559cfa6317bda67 Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Fri, 22 Jun 2012 17:25:32 -0400 Subject: Fix for handling null object value passed to DBAttrMapper as part of Coverity fix for Forward NULL cases in DogTag 10. --- base/common/src/com/netscape/cmscore/security/KeyCertUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/common/src/com/netscape/cmscore/security') diff --git a/base/common/src/com/netscape/cmscore/security/KeyCertUtil.java b/base/common/src/com/netscape/cmscore/security/KeyCertUtil.java index 80ad36c2d..210c04227 100644 --- a/base/common/src/com/netscape/cmscore/security/KeyCertUtil.java +++ b/base/common/src/com/netscape/cmscore/security/KeyCertUtil.java @@ -1052,7 +1052,7 @@ public class KeyCertUtil { } public static BigInteger getSerialNumber(LDAPConnection conn, String baseDN) - throws LDAPException { + throws LDAPException, EBaseException { String dn = "ou=certificateRepository,ou=ca," + baseDN; BigInteger serialno = null; LDAPEntry entry = conn.read(dn); @@ -1077,7 +1077,7 @@ public class KeyCertUtil { public static void setSerialNumber(LDAPConnection conn, String baseDN, BigInteger serial) - throws LDAPException { + throws LDAPException, EBaseException { String dn = "ou=certificateRepository,ou=ca," + baseDN; LDAPAttribute attr = new LDAPAttribute("serialno"); -- cgit