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