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

Commit 3b548655 authored by Sally's avatar Sally
Browse files

Don't query a null AccessibiiltyNodeInfo when populating ViewStructure

Chrome may crash with an NPE

Bug: 193839657
Test: builds
Change-Id: I106bdf80678f9edd6fbd5193d3a79a48c95a1d7a
parent 9c8441c8
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -10079,12 +10079,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                }
                AccessibilityNodeInfo cinfo = provider.createAccessibilityNodeInfo(
                        AccessibilityNodeInfo.getVirtualDescendantId(info.getChildId(i)));
                if (cinfo != null) {
                    ViewStructure child = structure.newChild(i);
                    populateVirtualStructure(child, provider, cinfo, forAutofill);
                    cinfo.recycle();
                }
            }
        }
    }
    /**
     * Dispatch creation of {@link ViewStructure} down the hierarchy.  The default