diff options
| author | 2023-05-18 15:46:31 +0800 | |
|---|---|---|
| committer | 2023-05-18 15:58:20 +0800 | |
| commit | d1f548a19d1058ff806a4db89f40a64a06a7f14f (patch) | |
| tree | d09d2b36483c30b4c9691b6bc0ab3f9f25cbbfd5 /java/system_modules.go | |
| parent | 0bd58ceeecfdd167faf4f9b5f5b1c85cc8301348 (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
Merged-In: : I8b27f65aa7d071041171ad45ac52bf47fa31bf2b
Change-Id: Icaaa45d48ca4edb876687c0813165d107d28ef8a
Diffstat (limited to 'java/system_modules.go')
0 files changed, 0 insertions, 0 deletions