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

Commit 98499b6d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null check before using mCallback"

parents aebe8ffa 1e27ae70
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -98,9 +98,13 @@ public abstract class AcquisitionClient<T> extends ClientMonitor<T> implements I
        }

        if (finish) {
            if (mCallback == null) {
                Slog.e(TAG, "Callback is null, perhaps the client hasn't been started yet?");
            } else {
                mCallback.onClientFinished(this, false /* success */);
            }
        }
    }

    @Override
    public void cancel() {