Merge "Fix panic when missing hiddenapi jar"
am: f5df780fc2
Change-Id: Ic21f9edcd54368477d68124a5cbd56b32a945b0c
This commit is contained in:
@@ -159,9 +159,9 @@ func stubFlagsRule(ctx android.SingletonContext) {
|
|||||||
for moduleList, pathList := range moduleListToPathList {
|
for moduleList, pathList := range moduleListToPathList {
|
||||||
for i := range pathList {
|
for i := range pathList {
|
||||||
if pathList[i] == nil {
|
if pathList[i] == nil {
|
||||||
|
pathList[i] = android.PathForOutput(ctx, "missing")
|
||||||
if ctx.Config().AllowMissingDependencies() {
|
if ctx.Config().AllowMissingDependencies() {
|
||||||
missingDeps = append(missingDeps, (*moduleList)[i])
|
missingDeps = append(missingDeps, (*moduleList)[i])
|
||||||
pathList[i] = android.PathForOutput(ctx, "missing")
|
|
||||||
} else {
|
} else {
|
||||||
ctx.Errorf("failed to find dex jar path for module %q",
|
ctx.Errorf("failed to find dex jar path for module %q",
|
||||||
(*moduleList)[i])
|
(*moduleList)[i])
|
||||||
|
Reference in New Issue
Block a user