Fix error handling
We log an error message, but then carry on and attempt to use the invalid impl, which then panics. Change-Id: I440cdf728cb32479a10cbaecc5aadbdd97f215de
This commit is contained in:
@@ -307,6 +307,7 @@ func (this *stubDecorator) findImplementationLibrary(ctx ModuleContext) android.
|
||||
impl, ok := dep.(*Module)
|
||||
if !ok {
|
||||
ctx.ModuleErrorf("Implementation for stub is not correct module type")
|
||||
return nil
|
||||
}
|
||||
output := impl.UnstrippedOutputFile()
|
||||
if output == nil {
|
||||
|
Reference in New Issue
Block a user