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

Commit 354587a9 authored by Felipe Leme's avatar Felipe Leme
Browse files

Check for mAttachInfo nullness when getting the autofillable drawable.

Test: manual verification on Caviar (automated test will be added later)
Test: CtsAutoFillServiceTestCases pass

Bug: 38341498
Fixes:  38323841

Change-Id: I15cc792de87987cc19a229c2ab2dfc317877f7ec
parent 1827f12b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -20506,6 +20506,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * @throws IllegalStateException if the drawable could not be found.
     */
    @Nullable private Drawable getAutofilledDrawable() {
        if (mAttachInfo == null) {
            return null;
        }
        // Lazily load the isAutofilled drawable.
        if (mAttachInfo.mAutofilledDrawable == null) {
            Context rootContext = getRootView().getContext();