diff options
| author | 2012-05-30 07:36:11 -0700 | |
|---|---|---|
| committer | 2012-05-30 07:36:11 -0700 | |
| commit | 20c15a4271ea3a7fb2210430bfc53f611603cf76 (patch) | |
| tree | d4db5027ceafa5d45e21a666d53ae310842543bf | |
| parent | 17150cf91be1478e367c2ef5e4f5baaa66b487d0 (diff) | |
| parent | 7a2cb35513b1016a5042f0a48d7008455f24a479 (diff) | |
Merge "Fix monkey NPE in AutoCompletePopup" into jb-dev
| -rw-r--r-- | core/java/android/webkit/AutoCompletePopup.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/webkit/AutoCompletePopup.java b/core/java/android/webkit/AutoCompletePopup.java index 87e878b40624..c624ce431e3d 100644 --- a/core/java/android/webkit/AutoCompletePopup.java +++ b/core/java/android/webkit/AutoCompletePopup.java @@ -181,8 +181,11 @@ class AutoCompletePopup implements OnItemClickListener, Filter.FilterListener, // There is no autofill profile setup yet and the user has // elected to try and set one up. Call through to the // embedder to action that. - mWebView.getWebChromeClient().setupAutoFill( + WebChromeClient webChromeClient = mWebView.getWebChromeClient(); + if (webChromeClient != null) { + webChromeClient.setupAutoFill( mHandler.obtainMessage(AUTOFILL_FORM)); + } } } else { Object selectedItem; |