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

Commit 8f2b31a0 authored by Arpan Kaphle's avatar Arpan Kaphle
Browse files

Fix arrayList init bug that caused failures

A nullable arraylist was causing add() failures. We require it to exist.

Bug: 270403549
Test: Builds
Change-Id: I9e7b92bbacc6a9a5031d7345c4384c34f0a72830
parent 25126020
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ package com.android.server.credentials;
import static com.android.server.credentials.MetricUtilities.logApiCalled;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.UserIdInt;
import android.content.ComponentName;
import android.content.Context;
@@ -85,8 +84,8 @@ abstract class RequestSession<T, U> implements CredentialManagerUi.CredentialMan

    // TODO(b/271135048) - Group metrics used in a scope together, such as here in RequestSession
    // TODO(b/271135048) - Replace this with a new atom per each browsing emit (V4)
    @Nullable
    protected List<CandidateBrowsingPhaseMetric> mCandidateBrowsingPhaseMetric;
    @NonNull
    protected List<CandidateBrowsingPhaseMetric> mCandidateBrowsingPhaseMetric = new ArrayList<>();
    // As emits occur in sequential order, increment this counter and utilize
    protected int mSequenceCounter = 0;
    protected final String mHybridService;