summaryrefslogtreecommitdiff
path: root/android/module.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-10-10 11:00:36 -0700
committer Cole Faust <colefaust@google.com> 2024-10-10 11:50:27 -0700
commit6978879d29533cd9d39c836c4410bd5acbdd0353 (patch)
tree8b798a2c78cadd8904e8ce8027d6c5cbb2842587 /android/module.go
parent527f3ad099cbe1cf9a25fa1bb901b16f0d2d2d9b (diff)
Remove dependencies on 1-variant fallback
This is just a first pass, there are still more issues to tackle. But after this we start getting errors about genrules which require more work to resolve, so I'll handle them in a separate cl. Bug: 372091092 Test: m nothing --no-skip-soong-tests Change-Id: Ibf8f6bca699ff7c3232495ae7fa2666c967ba90b
Diffstat (limited to 'android/module.go')
-rw-r--r--android/module.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go
index 8415118cb..3079b0706 100644
--- a/android/module.go
+++ b/android/module.go
@@ -1066,6 +1066,11 @@ func addVintfFragmentDeps(ctx BottomUpMutatorContext) {
modPartition := mod.PartitionTag(deviceConfig)
for _, vintf := range vintfModules {
+ if vintf == nil {
+ // TODO(b/372091092): Remove this. Having it gives us missing dependency errors instead
+ // of nil pointer dereference errors, but we should resolve the missing dependencies.
+ continue
+ }
if vintfModule, ok := vintf.(*vintfFragmentModule); ok {
vintfPartition := vintfModule.PartitionTag(deviceConfig)
if modPartition != vintfPartition {