try adding more require non nulls

This commit is contained in:
iadgovuser58 2024-02-01 09:47:26 -05:00
parent 085fd6e1c8
commit 0aab69871f

View File

@ -604,8 +604,9 @@ public class AttestationCertificateAuthorityTest {
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
ByteString blob = ProvisionUtils.tpm20MakeCredential(ekPub, akPub, nonce);
Path resources = Paths.get(Objects.requireNonNull(this.getClass().getResource(
"/").toURI())).getParent().getParent().getParent().getParent();
Path resources = Objects.requireNonNull(Paths.get(Objects.requireNonNull(this.getClass().getResource(
"/").toURI()))
.getParent().getParent().getParent().getParent());
Path makeBlob = resources.resolve("src/test/resources/tpm2/test/make.blob");
Files.write(makeBlob, blob.toByteArray());