mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2024-12-22 13:47:58 +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.Nonnull;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -170,8 +171,8 @@ public final class DiscoveryResponse {
|
||||||
|
|
||||||
private DiscoveryMethod discoveryMethod;
|
private DiscoveryMethod discoveryMethod;
|
||||||
private WKDAddress address;
|
private WKDAddress address;
|
||||||
private List<Certificate> acceptableCertificates;
|
private List<Certificate> acceptableCertificates = new ArrayList<>();
|
||||||
private List<RejectedCertificate> rejectedCertificates;
|
private List<RejectedCertificate> rejectedCertificates = new ArrayList<>();
|
||||||
private Throwable fetchingFailure;
|
private Throwable fetchingFailure;
|
||||||
private WKDPolicy policy;
|
private WKDPolicy policy;
|
||||||
private MissingPolicyFileException missingPolicyFileException;
|
private MissingPolicyFileException missingPolicyFileException;
|
||||||
|
|
Loading…
Reference in a new issue