mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 04:29:45 +01: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);
|
Log.d(TAG, "hangupNetworkCalls. shutDownView=" + shutDownView);
|
||||||
int apiVersion = ApiUtils.getCallApiVersion(conversationUser, new int[]{ApiUtils.APIv4, 1});
|
int apiVersion = ApiUtils.getCallApiVersion(conversationUser, new int[]{ApiUtils.APIv4, 1});
|
||||||
|
|
||||||
callParticipantList.removeObserver(callParticipantListObserver);
|
if (callParticipantList != null) {
|
||||||
callParticipantList.destroy();
|
callParticipantList.removeObserver(callParticipantListObserver);
|
||||||
|
callParticipantList.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
ncApi.leaveCall(credentials, ApiUtils.getUrlForCall(apiVersion, baseUrl, roomToken))
|
ncApi.leaveCall(credentials, ApiUtils.getUrlForCall(apiVersion, baseUrl, roomToken))
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
|
Loading…
Reference in New Issue
Block a user