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

Commit db2d5357 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents bdaa4de7 74d81b8f
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;