Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0aa64e17 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Fixed NPE when AutofillManager.getClient() returns null." into qt-dev

am: db2d5357

Change-Id: Idea2c7ce8db6740c32b09470f0db3e080821e573
parents a5d31895 db2d5357
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -3248,7 +3248,12 @@ public final class AutofillManager {
            final AutofillManager afm = mAfm.get();
            final AutofillManager afm = mAfm.get();
            if (afm == null) return null;
            if (afm == null) return null;


            final View view = afm.getClient().autofillClientFindViewByAutofillIdTraversal(id);
            final AutofillClient client = afm.getClient();
            if (client == null) {
                Log.w(TAG, "getViewCoordinates(" + id + "): no autofill client");
                return null;
            }
            final View view = client.autofillClientFindViewByAutofillIdTraversal(id);
            if (view == null) {
            if (view == null) {
                Log.w(TAG, "getViewCoordinates(" + id + "): could not find view");
                Log.w(TAG, "getViewCoordinates(" + id + "): could not find view");
                return null;
                return null;