Exit early on genrule command parsing failure
cmd may be empty if android.Expand fails, and continuing results in a panic. Return immediately. Test: m -j checkbuild Change-Id: Ibf4d57ce048db9f7f16ce118ed9e9ecea5a6551c
This commit is contained in:
parent
d87708ed4b
commit
54c5dd5238
1 changed files with 1 additions and 0 deletions
|
@ -198,6 +198,7 @@ func (g *generator) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||
|
||||
if err != nil {
|
||||
ctx.PropertyErrorf("cmd", "%s", err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
ruleParams := blueprint.RuleParams{
|
||||
|
|
Loading…
Reference in a new issue