am 9902196f: Fix npe in getCacheTotalSize.
Merge commit '9902196f9885d369e37cf44084e3f04513511ab0' into gingerbread-plus-aosp * commit '9902196f9885d369e37cf44084e3f04513511ab0': Fix npe in getCacheTotalSize.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user