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:
parent
f39b870fb0
commit
e7a2471567
1 changed files with 2 additions and 0 deletions
|
@ -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 + "'");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue