Commit d1b38c0a authored by Cool-fire's avatar Cool-fire

remove unsafe null check

parent e18537a7
......@@ -54,7 +54,8 @@ class VideoConferenceActivity : JitsiMeetActivity(), JitsiVideoConferenceView,
logJitsiMeetViewState("Joined video conferencing", map)
override fun onConferenceTerminated(map: MutableMap<String, Any>?) {
if(map!!.containsKey("error")) {
if(!map.isNullOrEmpty()){
if(map.containsKey("error")) {
logJitsiMeetViewState("Terminated video conferencing with error", map)
}
else{
......@@ -62,6 +63,7 @@ class VideoConferenceActivity : JitsiMeetActivity(), JitsiVideoConferenceView,
finishJitsiVideoConference()
}
}
}
override fun startJitsiVideoConference(url: String, name: String?) {
var options = JitsiMeetConferenceOptions.Builder()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment