diff --git a/src/com/android/server/telecom/ConnectionServiceWrapper.java b/src/com/android/server/telecom/ConnectionServiceWrapper.java index 1cb395733..1fc9a3bd4 100755 --- a/src/com/android/server/telecom/ConnectionServiceWrapper.java +++ b/src/com/android/server/telecom/ConnectionServiceWrapper.java @@ -1269,6 +1269,14 @@ public class ConnectionServiceWrapper extends ServiceBinder implements @Override public void onSuccess() { String callId = mCallIdMapper.getCallId(call); + if (callId == null) { + Log.w(ConnectionServiceWrapper.this, "Call not present" + + " in call id mapper, maybe it was aborted before the bind" + + " completed successfully?"); + response.handleCreateConnectionFailure( + new DisconnectCause(DisconnectCause.CANCELED)); + return; + } mPendingResponses.put(callId, response); GatewayInfo gatewayInfo = call.getGatewayInfo();