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

Commit 2c9a5b9f authored by Grace Jia's avatar Grace Jia Committed by android-build-merger
Browse files

Merge "Modified ImsServiceController.java to catch NullPointerException when...

Merge "Modified ImsServiceController.java to catch NullPointerException when trying to unbind ims service."
am: a5fbb5dd

Change-Id: I3aa5c1a09c782e39d807933bc99f687087fe2d8f
parents 0485a07d a5fbb5dd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -114,9 +114,11 @@ public class ImsServiceController {
                mIsBinding = false;
                mIsBound = false;
            }
            cleanupConnection();
            if (mImsServiceConnection != null) {
                // according to the docs, we should fully unbind before rebinding again.
                mContext.unbindService(mImsServiceConnection);
            }
            cleanupConnection();
            Log.w(LOG_TAG, "ImsService(" + name + "): onBindingDied. Starting rebind...");
            startDelayedRebindToService();
            mLocalLog.log("onBindingDied, retrying in " + mBackoff.getCurrentDelay() + " mS");