diff --git a/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java b/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java index 1b25441cbc2d12545145f368c2161d7e3ea9d5f7..76ddd71bc445a59daf296f2df3006d01713ffbab 100644 --- a/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java +++ b/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java @@ -136,8 +136,12 @@ public class CallRedirectionProcessor implements CallRedirectionCallback { Log.i(this, "notifyTimeout: call redirection has timed out so " + "unbinding the connection"); if (mConnection != null) { - // We still need to call unbind even if the service disconnected. - mContext.unbindService(mConnection); + try { + // We still need to call unbind even if the service disconnected. + mContext.unbindService(mConnection); + } catch (IllegalArgumentException e) { + Log.e(this, e, "Error unbinding the connection"); + } mConnection = null; } mService = null;