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

Commit 4e43e66a authored by Joanne Chung's avatar Joanne Chung Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE if no AutofillId when traversing the view tree."

parents 2cd72e81 7ebd5f7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -623,7 +623,7 @@ public class UiTranslationController {

    private void addViewIfNeeded(IntArray sourceViewIds, View view) {
        final AutofillId autofillId = view.getAutofillId();
        if ((sourceViewIds.indexOf(autofillId.getViewId()) >= 0)
        if (autofillId != null && (sourceViewIds.indexOf(autofillId.getViewId()) >= 0)
                && !mViews.containsKey(autofillId)) {
            mViews.put(autofillId, new WeakReference<>(view));
        }