Merge "Fix panic when a module has an invalid output path"
This commit is contained in:
@@ -760,6 +760,7 @@ func collectAppDeps(ctx android.ModuleContext, app appDepsInterface,
|
|||||||
}
|
}
|
||||||
|
|
||||||
lib := dep.OutputFile()
|
lib := dep.OutputFile()
|
||||||
|
if lib.Valid() {
|
||||||
path := lib.Path()
|
path := lib.Path()
|
||||||
if seenModulePaths[path.String()] {
|
if seenModulePaths[path.String()] {
|
||||||
return false
|
return false
|
||||||
@@ -771,7 +772,6 @@ func collectAppDeps(ctx android.ModuleContext, app appDepsInterface,
|
|||||||
otherName)
|
otherName)
|
||||||
}
|
}
|
||||||
|
|
||||||
if lib.Valid() {
|
|
||||||
jniLibs = append(jniLibs, jniLib{
|
jniLibs = append(jniLibs, jniLib{
|
||||||
name: ctx.OtherModuleName(module),
|
name: ctx.OtherModuleName(module),
|
||||||
path: path,
|
path: path,
|
||||||
|
Reference in New Issue
Block a user