Prevent index out of range
am: b674a5226a
Change-Id: Ie518981659c3aea595bac9c4b4bc12bfe332fc1a
This commit is contained in:
@@ -164,15 +164,21 @@ func (module *sdkLibrary) AndroidMk() android.AndroidMkData {
|
|||||||
fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES := "+module.implName())
|
fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES := "+module.implName())
|
||||||
fmt.Fprintln(w, "include $(BUILD_PHONY_PACKAGE)")
|
fmt.Fprintln(w, "include $(BUILD_PHONY_PACKAGE)")
|
||||||
// Create dist rules to install the stubs libs to the dist dir
|
// Create dist rules to install the stubs libs to the dist dir
|
||||||
|
if len(module.publicApiStubsPath) == 1 {
|
||||||
fmt.Fprintln(w, "$(call dist-for-goals,sdk win_sdk,"+
|
fmt.Fprintln(w, "$(call dist-for-goals,sdk win_sdk,"+
|
||||||
module.publicApiStubsPath.Strings()[0]+
|
module.publicApiStubsPath.Strings()[0]+
|
||||||
":"+path.Join("apistubs", "public", module.BaseModuleName()+".jar")+")")
|
":"+path.Join("apistubs", "public", module.BaseModuleName()+".jar")+")")
|
||||||
|
}
|
||||||
|
if len(module.systemApiStubsPath) == 1 {
|
||||||
fmt.Fprintln(w, "$(call dist-for-goals,sdk win_sdk,"+
|
fmt.Fprintln(w, "$(call dist-for-goals,sdk win_sdk,"+
|
||||||
module.systemApiStubsPath.Strings()[0]+
|
module.systemApiStubsPath.Strings()[0]+
|
||||||
":"+path.Join("apistubs", "system", module.BaseModuleName()+".jar")+")")
|
":"+path.Join("apistubs", "system", module.BaseModuleName()+".jar")+")")
|
||||||
|
}
|
||||||
|
if len(module.testApiStubsPath) == 1 {
|
||||||
fmt.Fprintln(w, "$(call dist-for-goals,sdk win_sdk,"+
|
fmt.Fprintln(w, "$(call dist-for-goals,sdk win_sdk,"+
|
||||||
module.testApiStubsPath.Strings()[0]+
|
module.testApiStubsPath.Strings()[0]+
|
||||||
":"+path.Join("apistubs", "test", module.BaseModuleName()+".jar")+")")
|
":"+path.Join("apistubs", "test", module.BaseModuleName()+".jar")+")")
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user