diff --git a/apex/apex.go b/apex/apex.go index 67b1f2761..c71477117 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -450,7 +450,11 @@ func (a *apexBundle) DepsMutator(ctx android.BottomUpMutatorContext) { } func (a *apexBundle) Srcs() android.Paths { - return android.Paths{a.outputFiles[imageApex]} + if file, ok := a.outputFiles[imageApex]; ok { + return android.Paths{file} + } else { + return nil + } } func (a *apexBundle) installable() bool {