Merge "Check for null call id in ConnectionServiceWrapper"

This commit is contained in:
Treehugger Robot 2021-04-26 19:36:57 +00:00 committed by Gerrit Code Review
commit 9ee28de248
1 changed files with 8 additions and 0 deletions

View File

@ -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();