1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-22 19:08:00 +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 4594b494a9
commit c19b8297a3

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 + "'");
}