Merge "Fix error handling"

This commit is contained in:
Treehugger Robot 2022-11-03 19:29:13 +00:00 committed by Gerrit Code Review
commit d704f6ad69

View file

@ -307,6 +307,7 @@ func (this *stubDecorator) findImplementationLibrary(ctx ModuleContext) android.
impl, ok := dep.(*Module) impl, ok := dep.(*Module)
if !ok { if !ok {
ctx.ModuleErrorf("Implementation for stub is not correct module type") ctx.ModuleErrorf("Implementation for stub is not correct module type")
return nil
} }
output := impl.UnstrippedOutputFile() output := impl.UnstrippedOutputFile()
if output == nil { if output == nil {