Fix npe in getCacheTotalSize.

Bug: 2882277
Change-Id: I9319a48e0ed75561d3d04691fb288f69d11edc84
This commit is contained in:
Patrick Scott
2010-08-11 09:48:43 -04:00
parent 1777a2748b
commit 9902196f98

View File

@@ -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";