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

Commit 07364d6a authored by Jay Shrauner's avatar Jay Shrauner
Browse files

Fix NPE in onDetailsChanged

Bug:22925987
Change-Id: I20ad0ea5e40342805a2004654e6b78f420c33873
parent 7632fdfb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -124,7 +124,8 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto
     */
    @Override
    public void onDetailsChanged(Call call, android.telecom.Call.Details details) {
        if (getUi() != null && Objects.equals(call, mCall)) {
        // Only update if the changes are for the currently active call
        if (getUi() != null && call != null && call.equals(mCall)) {
            updateButtonsState(call);
        }
    }