am 9902196f: Fix npe in getCacheTotalSize.

Merge commit '9902196f9885d369e37cf44084e3f04513511ab0' into gingerbread-plus-aosp

* commit '9902196f9885d369e37cf44084e3f04513511ab0':
  Fix npe in getCacheTotalSize.
This commit is contained in:
Patrick Scott
2010-08-11 07:18:27 -07:00
committed by Android Git Automerger

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