aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-03-20 10:07:54 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-03-20 10:07:54 +0000
commit4dd9552d015d097d63aac6f12cc339173d521761 (patch)
tree7a11f91adee1af13922dc5904b379ff7adafc0e9 /src/main/java/at
parent4229bc84c265495ecf82d2326ef6fd7b3c598760 (diff)
downloadpdf-as-3-4dd9552d015d097d63aac6f12cc339173d521761.tar.gz
pdf-as-3-4dd9552d015d097d63aac6f12cc339173d521761.tar.bz2
pdf-as-3-4dd9552d015d097d63aac6f12cc339173d521761.zip
prevent NPE
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@59 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIImpl.java b/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIImpl.java
index 6f4ca72..d6f3e7c 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIImpl.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIImpl.java
@@ -109,7 +109,9 @@ public class LDAPAPIImpl implements LDAPAPI {
try {
LDAPClient client = this.ldapClientFactory.createClient(issuer);
X509Certificate x509certificate = client.retrieveCertificate(new BigInteger(serialNumber));
- base64CertData = Util.Base64Encode(x509certificate.toByteArray());
+ if (x509certificate != null) {
+ base64CertData = Util.Base64Encode(x509certificate.toByteArray());
+ }
} catch (LDAPException e) {
this.log.error(e);
}