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

Commit 58e49d68 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

am: 0aa64e17

Change-Id: Ic4b40f471cc72bdc5ff48b2284a5e6f735771063
parents 48ac1652 0aa64e17
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3248,7 +3248,12 @@ public final class AutofillManager {
            final AutofillManager afm = mAfm.get();
            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) {
                Log.w(TAG, "getViewCoordinates(" + id + "): could not find view");
                return null;