diff options
| author | 2021-02-22 17:37:55 +0000 | |
|---|---|---|
| committer | 2021-02-22 17:37:55 +0000 | |
| commit | 782fa90be7c1fb836fd2a0c722cd2d0b4ddb34c7 (patch) | |
| tree | 7f3ddcbe0c809b10945bf0d360f2e107695ac763 | |
| parent | 32a2e395639b78b4f2ca935a945b16ca8a81da26 (diff) | |
| parent | 3218ac886406719214a3f6a4a9656731011171c6 (diff) | |
Merge "Fix NPE in AutofillManager when feature autofill is disabled"
| -rw-r--r-- | core/java/android/view/autofill/AutofillManager.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/view/autofill/AutofillManager.java b/core/java/android/view/autofill/AutofillManager.java index c5ca88605633..8810814849b2 100644 --- a/core/java/android/view/autofill/AutofillManager.java +++ b/core/java/android/view/autofill/AutofillManager.java @@ -1911,7 +1911,10 @@ public final class AutofillManager { if (client == null) { return; } - + if (mService == null) { + Log.w(TAG, "Autofill service is null!"); + return; + } if (mServiceClient == null) { mServiceClient = new AutofillManagerClient(this); try { |