Fix NPE when fetching unfetchable cert

This commit is contained in:
Paul Schaub 2022-09-13 12:31:26 +02:00
parent 2a1676904f
commit f9543cddae
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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;