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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user