diff options
author | Sudheer Shanka <sudheersai@google.com> | 2020-02-19 11:45:59 -0800 |
---|---|---|
committer | Sudheer Shanka <sudheersai@google.com> | 2020-02-19 12:47:13 -0800 |
commit | 9c7eed49fb27fedc271711de905549f0e106fb79 (patch) | |
tree | 00bc32d5bfa69e0fa3b2767973bca4640e5ebabb /apex/blobstore | |
parent | 251c21df37937f301234e72ab295084e39c75901 (diff) |
Don't error out if the index files are not available.
... which is expected when there is no data contributed yet.
Test: atest --test-mapping apex/blobstore
Change-Id: Ib760a184fb17cb39d7d84378416c0e1fba390858
Diffstat (limited to 'apex/blobstore')
-rw-r--r-- | apex/blobstore/service/java/com/android/server/blob/BlobStoreManagerService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apex/blobstore/service/java/com/android/server/blob/BlobStoreManagerService.java b/apex/blobstore/service/java/com/android/server/blob/BlobStoreManagerService.java index d4ceabda8acc..8cd9f292e913 100644 --- a/apex/blobstore/service/java/com/android/server/blob/BlobStoreManagerService.java +++ b/apex/blobstore/service/java/com/android/server/blob/BlobStoreManagerService.java @@ -485,6 +485,9 @@ public class BlobStoreManagerService extends SystemService { if (sessionsIndexFile == null) { Slog.wtf(TAG, "Error creating sessions index file"); return; + } else if (!sessionsIndexFile.exists()) { + Slog.w(TAG, "Sessions index file not available: " + sessionsIndexFile.getBaseFile()); + return; } mSessions.clear(); @@ -574,6 +577,9 @@ public class BlobStoreManagerService extends SystemService { if (blobsIndexFile == null) { Slog.wtf(TAG, "Error creating blobs index file"); return; + } else if (!blobsIndexFile.exists()) { + Slog.w(TAG, "Blobs index file not available: " + blobsIndexFile.getBaseFile()); + return; } mBlobsMap.clear(); |