Skip to content

Commit 56968ee

Browse files
committed
Added missing null-check (thanks Spotbugs)
1 parent 1bff6d7 commit 56968ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/simplejavamail/utils/mail/smime/SmimeKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public X509Certificate getCertificate() {
6666
* @return The chain of {@link X509Certificate X509Certificates}.
6767
*/
6868
public X509Certificate[] getCertificateChain() {
69-
return certificateChain.clone();
69+
return certificateChain != null ? certificateChain.clone() : null;
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)