Add null pointer check in removeConnection am: e370b538eb
am: 58642e6545
* commit '58642e65455ee9456993a2f6386402fbcec68ab8':
Add null pointer check in removeConnection
Change-Id: Ia4d14a664c9869d1065313db6795ac4e72dee59d
This commit is contained in:
@@ -1367,12 +1367,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