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

Commit 23916134 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Make sure the mBinder is not null before clearing listener

Bug: 77693258
Test: Unit Tests/GTS Tests
Change-Id: I85bae2f073960b81ba0afe791138d2765a7f4ed6
parent b8cd4400
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -451,7 +451,11 @@ public class MmTelFeatureConnection {
        mRegistrationCallbackManager.close();
        mCapabilityCallbackManager.close();
        try {
            synchronized (mLock) {
                if (isBinderAlive()) {
                    getServiceInterface(mBinder).setListener(null);
                }
            }
        } catch (RemoteException e) {
            Log.w(TAG, "closeConnection: couldn't remove listener!");
        }