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

am: c840efcf7e

Change-Id: I5038667db6b15d74aada29e245b8ff81ca2f3bd8
This commit is contained in:
Tyler Gunn
2017-12-21 20:06:18 +00:00
committed by android-build-merger

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