Add null pointer check in removeConnection
am: e370b538eb
* commit 'e370b538ebb6ca1072f270aee3003faaa0d1deb2':
Add null pointer check in removeConnection
Change-Id: I7b615a8f7c7a89617c4f748ad74007ec73db6784
This commit is contained in:
@@ -1193,12 +1193,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