commit | 73d3245e30798ab08dde57b0dc2d58e11aaeb26e | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Tue Nov 01 14:05:08 2022 +0000 |
committer | Alan Stokes <alanstokes@google.com> | Tue Nov 01 14:05:13 2022 +0000 |
tree | c249f9dc8cc23916ee0ba87532e422b44059ae12 | |
parent | af9dbb30f6db69025407eb390da97cbdc1075905 [diff] [blame] |
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
diff --git a/cc/ndk_library.go b/cc/ndk_library.go index 49a919e..d704e32 100644 --- a/cc/ndk_library.go +++ b/cc/ndk_library.go
@@ -307,6 +307,7 @@ impl, ok := dep.(*Module) if !ok { ctx.ModuleErrorf("Implementation for stub is not correct module type") + return nil } output := impl.UnstrippedOutputFile() if output == nil {