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

Commit 61e0c5de authored by Simranjit Kohli's avatar Simranjit Kohli Committed by Android (Google) Code Review
Browse files

Merge "[Fix NPE]: Add a null check" into main

parents 935e6566 3696dc30
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -94,8 +94,15 @@ public final class AutofillClientController implements AutofillManager.AutofillC
     * @hide
     * @hide
     */
     */
    public boolean isRelayoutFixEnabled() {
    public boolean isRelayoutFixEnabled() {
        AutofillManager autofillManager = getAutofillManager();
        if (autofillManager == null) {
            if (Helper.sDebug) {
                Log.d(TAG, "isRelayoutFixEnabled() : getAutofillManager() == null");
            }
            return false;
        }
        if (mRelayoutFix == null) {
        if (mRelayoutFix == null) {
            mRelayoutFix = getAutofillManager().isRelayoutFixEnabled();
            mRelayoutFix = autofillManager.isRelayoutFixEnabled();
        }
        }
        return mRelayoutFix;
        return mRelayoutFix;
    }
    }