summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2019-04-03 13:53:46 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-04-03 13:53:46 +0000
commitf5df780fc29cf6a884530243e265ebcd69c2a499 (patch)
treef04c25860265c6aca267f61195e0a1665a8e5e0f /java
parent61166dc047ff30869667a58cf0daca68d20e38ab (diff)
parentcaa0e1e341e55eb62f163fb01d8fc4c44d36eb8b (diff)
Merge "Fix panic when missing hiddenapi jar"
Diffstat (limited to 'java')
-rw-r--r--java/hiddenapi_singleton.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go
index 139114b37..9627dc64b 100644
--- a/java/hiddenapi_singleton.go
+++ b/java/hiddenapi_singleton.go
@@ -159,9 +159,9 @@ func stubFlagsRule(ctx android.SingletonContext) {
for moduleList, pathList := range moduleListToPathList {
for i := range pathList {
if pathList[i] == nil {
+ pathList[i] = android.PathForOutput(ctx, "missing")
if ctx.Config().AllowMissingDependencies() {
missingDeps = append(missingDeps, (*moduleList)[i])
- pathList[i] = android.PathForOutput(ctx, "missing")
} else {
ctx.Errorf("failed to find dex jar path for module %q",
(*moduleList)[i])