summaryrefslogtreecommitdiff
path: root/java/fuzz.go
diff options
context:
space:
mode:
author Zyan Wu <zyanwu@google.com> 2023-05-18 15:46:31 +0800
committer Zyan Wu <zyanwu@google.com> 2023-05-18 15:46:31 +0800
commitb7550aa09af04e92ce24e5bf2594b312d8bc51f7 (patch)
tree2ba9ed9254b1d4b1f11c4d3b9f9fef9d4514d1fe /java/fuzz.go
parent5050a55b18b16dd177925407858e5e8f193728f6 (diff)
Don't panic if no certificates found
Getting the first certificate will panic if there are no certificates, which can happen when AllowMissingDependencies is set and the certificate property is a module reference to a missing module. Only get the first certificate if the list is not nil. Use mainCertificate since it handles the logic already. Test: TestAppMissingCertificateAllowMissingDependencies Bug: 283102635 Change-Id: I8b27f65aa7d071041171ad45ac52bf47fa31bf2b
Diffstat (limited to 'java/fuzz.go')
0 files changed, 0 insertions, 0 deletions