1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-26 05:24:49 +02:00

Add TODO for when bumping cert-d-java

This commit is contained in:
Paul Schaub 2022-08-29 10:36:39 +02:00
parent f39b870fb0
commit e7a2471567

View file

@ -258,6 +258,8 @@ public class EncryptionOptions {
throws BadDataException, BadNameException, IOException {
String fingerprint = certificateFingerprint.toString().toLowerCase();
Certificate certificateRecord = certificateStore.getCertificate(fingerprint);
// TODO: getCertificate throws NSEE automatically in 0.2.2+
// Remove if statement below when bumping
if (certificateRecord == null) {
throw new NoSuchElementException("Cannot find certificate '" + certificateFingerprint + "'");
}