mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
Merge pull request #2708 from nextcloud/bugfix/noid/avoidNpeOnHangup
avoid NPE on hangup
This commit is contained in:
commit
f493c84108
@ -1746,8 +1746,10 @@ public class CallActivity extends CallBaseActivity {
|
||||
Log.d(TAG, "hangupNetworkCalls. shutDownView=" + shutDownView);
|
||||
int apiVersion = ApiUtils.getCallApiVersion(conversationUser, new int[]{ApiUtils.APIv4, 1});
|
||||
|
||||
callParticipantList.removeObserver(callParticipantListObserver);
|
||||
callParticipantList.destroy();
|
||||
if (callParticipantList != null) {
|
||||
callParticipantList.removeObserver(callParticipantListObserver);
|
||||
callParticipantList.destroy();
|
||||
}
|
||||
|
||||
ncApi.leaveCall(credentials, ApiUtils.getUrlForCall(apiVersion, baseUrl, roomToken))
|
||||
.subscribeOn(Schedulers.io())
|
||||
|
Loading…
Reference in New Issue
Block a user