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

Commit 9902196f authored by Patrick Scott's avatar Patrick Scott
Browse files

Fix npe in getCacheTotalSize.

Bug: 2882277
Change-Id: I9319a48e0ed75561d3d04691fb288f69d11edc84
parent 1777a274
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -727,6 +727,9 @@ public class WebViewDatabase {
    }

    long getCacheTotalSize() {
        if (mCacheDatabase == null) {
            return 0;
        }
        long size = 0;
        Cursor cursor = null;
        final String query = "SELECT SUM(contentlength) as sum FROM cache";