Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c7eed49 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

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
parent 251c21df
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -485,6 +485,9 @@ public class BlobStoreManagerService extends SystemService {
        if (sessionsIndexFile == null) {
        if (sessionsIndexFile == null) {
            Slog.wtf(TAG, "Error creating sessions index file");
            Slog.wtf(TAG, "Error creating sessions index file");
            return;
            return;
        } else if (!sessionsIndexFile.exists()) {
            Slog.w(TAG, "Sessions index file not available: " + sessionsIndexFile.getBaseFile());
            return;
        }
        }


        mSessions.clear();
        mSessions.clear();
@@ -574,6 +577,9 @@ public class BlobStoreManagerService extends SystemService {
        if (blobsIndexFile == null) {
        if (blobsIndexFile == null) {
            Slog.wtf(TAG, "Error creating blobs index file");
            Slog.wtf(TAG, "Error creating blobs index file");
            return;
            return;
        } else if (!blobsIndexFile.exists()) {
            Slog.w(TAG, "Blobs index file not available: " + blobsIndexFile.getBaseFile());
            return;
        }
        }


        mBlobsMap.clear();
        mBlobsMap.clear();