diff options
author | 2021-03-09 15:02:31 -0800 | |
---|---|---|
committer | 2021-03-09 15:14:34 -0800 | |
commit | 1c1b6e6d9555e4323e80ad0c48fed988c6cef411 (patch) | |
tree | 32235d090f59fab358dcedf255ace56e9a1e9498 /android/path_properties.go | |
parent | 05ebca4f7fc4dc391575d58db766bb42d16934fe (diff) |
Lineage properties support module references.
They should have had `android:"path"` tags attached so that users can
point them to filegroup modules.
Test: app_test.go & app_import_test.go
Bug: 182175153
Change-Id: I5580408488ffe5fc12c869cbfb7a468713dcbc96
Diffstat (limited to 'android/path_properties.go')
-rw-r--r-- | android/path_properties.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android/path_properties.go b/android/path_properties.go index 853e5a9a7..2c8d27c56 100644 --- a/android/path_properties.go +++ b/android/path_properties.go @@ -118,6 +118,13 @@ func fieldsByIndex(v reflect.Value, index []int, values *[]reflect.Value) { *values = append(*values, v.Index(i).Field(index[0])) } } else { + // Dereference it if it's a pointer. + if v.Kind() == reflect.Ptr { + if v.IsNil() { + return + } + v = v.Elem() + } *values = append(*values, v.Field(index[0])) } return |