diff options
author | Abhishek Koneru <akoneru@redhat.com> | 2012-06-22 17:25:32 -0400 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-06-29 14:15:51 -0500 |
commit | d2b06ee1f9fcc42be83f04f64559cfa6317bda67 (patch) | |
tree | 5bcffe77451fb1ab194339d9aa8e759968fd4d27 /base/common/src/com/netscape/cmscore/security | |
parent | eb4b46f25ca8dec8ac79c26cfb02e8918000c88e (diff) | |
download | pki-d2b06ee1f9fcc42be83f04f64559cfa6317bda67.tar.gz pki-d2b06ee1f9fcc42be83f04f64559cfa6317bda67.tar.xz pki-d2b06ee1f9fcc42be83f04f64559cfa6317bda67.zip |
Fix for handling null object value passed to DBAttrMapper as part of Coverity fix for Forward NULL cases in DogTag 10.
Diffstat (limited to 'base/common/src/com/netscape/cmscore/security')
-rw-r--r-- | base/common/src/com/netscape/cmscore/security/KeyCertUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |