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:
@@ -198,6 +198,7 @@ func (g *generator) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.PropertyErrorf("cmd", "%s", err.Error())
|
ctx.PropertyErrorf("cmd", "%s", err.Error())
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ruleParams := blueprint.RuleParams{
|
ruleParams := blueprint.RuleParams{
|
||||||
|
Reference in New Issue
Block a user