diff options
| author | 2021-12-08 15:42:22 -0800 | |
|---|---|---|
| committer | 2021-12-08 15:42:22 -0800 | |
| commit | c53c37fad18dbd9fa4935e00605ea76273a7ace8 (patch) | |
| tree | 23f272c504921d2e4e170a4e83fe31c6b0260cbc /python/binary.go | |
| parent | ce69757379f169b5d5be3ea323610eda3f8993ab (diff) | |
Don't panic when DevicePrimaryArchType is called in a host only build
Check the length of c.Targets[Android] before getting the first
element, and return Common if the length is set. Fixes a panic
when a tradefed_binary is defined in a host-only build.
Test: aosp-build-tools build
Change-Id: I89f1dd13aa1aff5eb7d39e0b66eeedcb7d930fa0
Diffstat (limited to 'python/binary.go')
0 files changed, 0 insertions, 0 deletions