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

Commit 61e71d32 authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Make sure the mBinder is not null before clearing listener

am: b84d40e2

Change-Id: I6010710f758b90b91e5c67764c74b90bf0cb6b39
parents aa8c7a7d b84d40e2
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!");
        }