diff options
-rw-r--r-- | src/com/android/browser/BrowserSettings.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index 51b4eaa..3d5ca03 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -503,7 +503,10 @@ class BrowserSettings extends Observable { /* package */ void clearFormData(Context context) { WebViewDatabase.getInstance(context).clearFormData(); if (mTabControl != null) { - mTabControl.getCurrentTopWebView().clearFormData(); + WebView currentTopView = mTabControl.getCurrentTopWebView(); + if (currentTopView != null) { + currentTopView.clearFormData(); + } } } |