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

Commit b84d40e2 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
Merged-In: I485bbd0a6d4f2ba550911d5c4a55eb9936ac7981
Change-Id: I85bae2f073960b81ba0afe791138d2765a7f4ed6
parent d0423bf7
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!");
        }