Add null pointer check in removeConnection
Bug: 28607777 Change-Id: I199ed75740796540d243ad9f507ab2511c9ed3c1
This commit is contained in:
@@ -1187,12 +1187,14 @@ public abstract class ConnectionService extends Service {
|
||||
|
||||
/** {@hide} */
|
||||
protected void removeConnection(Connection connection) {
|
||||
String id = mIdByConnection.get(connection);
|
||||
connection.unsetConnectionService(this);
|
||||
connection.removeConnectionListener(mConnectionListener);
|
||||
mConnectionById.remove(mIdByConnection.get(connection));
|
||||
mIdByConnection.remove(connection);
|
||||
mAdapter.removeCall(id);
|
||||
String id = mIdByConnection.get(connection);
|
||||
if (id != null) {
|
||||
mConnectionById.remove(id);
|
||||
mIdByConnection.remove(connection);
|
||||
mAdapter.removeCall(id);
|
||||
}
|
||||
}
|
||||
|
||||
private String addConferenceInternal(Conference conference) {
|
||||
|
||||
Reference in New Issue
Block a user