Merge "Add logging and disconnect reason for null connections." am: 7661e81f85 am: c840efcf7e

am: 5d7c823e16

Change-Id: I57395d052d284ca3b8071b71dc762c1147d1107a
This commit is contained in:
Tyler Gunn
2017-12-21 20:43:39 +00:00
committed by android-build-merger

View File

@@ -1466,8 +1466,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);