summaryrefslogtreecommitdiff
path: root/android/module.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-08-18 05:07:22 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-08-18 05:07:22 +0000
commitaa3235edcc79f76bb66f5bcad3a47c8c60b64ec3 (patch)
treee91b202cf5f10ae8af7a82d3b30a283769816442 /android/module.go
parentb8b19daf9ddcb0f884e68e82cb5849d617a3c21c (diff)
parentca29a25d38b6fcd4845720404f56fb8d8726e246 (diff)
Merge "Deduplicate APEX variants that would build identically" am: ca29a25d38
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1399832 Change-Id: Ic3727a541bb7a098fe81ca0d4cf92e2139f1a7ab
Diffstat (limited to 'android/module.go')
-rw-r--r--android/module.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go
index b689a87f2..0eb8bc908 100644
--- a/android/module.go
+++ b/android/module.go
@@ -1769,6 +1769,9 @@ func (b *baseModuleContext) VisitDirectDepsBlueprint(visit func(blueprint.Module
func (b *baseModuleContext) VisitDirectDeps(visit func(Module)) {
b.bp.VisitDirectDeps(func(module blueprint.Module) {
+ if module == nil {
+ panic("Unexpected nil module in VisitDirectDeps")
+ }
if aModule := b.validateAndroidModule(module, b.strictVisitDeps); aModule != nil {
visit(aModule)
}