title: Workaround for uncatchable NPE from WebViewDatabase on pre-Gingerbread devices
body: <p>I'm getting this uncatchable exception on pre-Gingerbread devices:</p>
  
  <pre><code>java.lang.NullPointerException: null
   at android.webkit.WebViewDatabase.getCacheTotalSize(WebViewDatabase.java:735)
   at android.webkit.CacheManager.trimCacheIfNeeded(CacheManager.java:557)
   at android.webkit.WebViewWorker.handleMessage(WebViewWorker.java:195)
   at android.os.Handler.dispatchMessage(Handler.java:99)
   at android.os.Looper.loop(Looper.java:123)
   at android.os.HandlerThread.run(HandlerThread.java:60)
  </code></pre>
  
  <p>I only use WebView for AdMob ads, so this is quite annoying.</p>
  
  <p>Is there a way to stop these crashes?</p>