1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-16 17:32:06 +01: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 { throws BadDataException, BadNameException, IOException {
String fingerprint = certificateFingerprint.toString().toLowerCase(); String fingerprint = certificateFingerprint.toString().toLowerCase();
Certificate certificateRecord = certificateStore.getCertificate(fingerprint); Certificate certificateRecord = certificateStore.getCertificate(fingerprint);
// TODO: getCertificate throws NSEE automatically in 0.2.2+
// Remove if statement below when bumping
if (certificateRecord == null) { if (certificateRecord == null) {
throw new NoSuchElementException("Cannot find certificate '" + certificateFingerprint + "'"); throw new NoSuchElementException("Cannot find certificate '" + certificateFingerprint + "'");
} }