mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2024-11-15 20:42:05 +01:00
Fix NPE when fetching unfetchable cert
This commit is contained in:
parent
2a1676904f
commit
f9543cddae
1 changed files with 3 additions and 2 deletions
|
@ -12,6 +12,7 @@ import pgp.wkd.exception.MissingPolicyFileException;
|
|||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import java.net.URI;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -170,8 +171,8 @@ public final class DiscoveryResponse {
|
|||
|
||||
private DiscoveryMethod discoveryMethod;
|
||||
private WKDAddress address;
|
||||
private List<Certificate> acceptableCertificates;
|
||||
private List<RejectedCertificate> rejectedCertificates;
|
||||
private List<Certificate> acceptableCertificates = new ArrayList<>();
|
||||
private List<RejectedCertificate> rejectedCertificates = new ArrayList<>();
|
||||
private Throwable fetchingFailure;
|
||||
private WKDPolicy policy;
|
||||
private MissingPolicyFileException missingPolicyFileException;
|
||||
|
|
Loading…
Reference in a new issue