1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-10 22:31:09 +01:00

Add tests for pgpainless-sop

This commit is contained in:
Paul Schaub 2021-08-30 17:15:11 +02:00
parent 97c8ff8312
commit f68779d8a5
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
4 changed files with 349 additions and 3 deletions

View file

@ -64,7 +64,7 @@ public class DecryptImpl implements Decrypt {
try {
PGPPublicKeyRingCollection certs = PGPainless.readKeyRing().keyRingCollection(certIn, false)
.getPgpPublicKeyRingCollection();
if (certs == null) {
if (certs.size() == 0) {
throw new SOPGPException.BadData(new PGPException("No certificates provided."));
}