Merge "Add logging and disconnect reason for null connections."

This commit is contained in:
Tyler Gunn
2017-12-21 19:39:32 +00:00
committed by Gerrit Code Review

View File

@@ -1436,8 +1436,9 @@ public abstract class ConnectionService extends Service {
}
Log.d(this, "createConnection, connection: %s", connection);
if (connection == null) {
Log.i(this, "createConnection, implementation returned null connection.");
connection = Connection.createFailedConnection(
new DisconnectCause(DisconnectCause.ERROR));
new DisconnectCause(DisconnectCause.ERROR, "IMPL_RETURNED_NULL_CONNECTION"));
}
connection.setTelecomCallId(callId);