From 22516c186285ed4723644ef790d1fe0ce43a0bf1 Mon Sep 17 00:00:00 2001 From: eerielili Date: Wed, 10 Jan 2024 20:20:50 +0000 Subject: Fix crash on removing conference not in roster (#1516) --- main/src/ui/add_conversation/add_conference_dialog.vala | 1 + 1 file changed, 1 insertion(+) diff --git a/main/src/ui/add_conversation/add_conference_dialog.vala b/main/src/ui/add_conversation/add_conference_dialog.vala index 4b7364c7..c5e4ac51 100644 --- a/main/src/ui/add_conversation/add_conference_dialog.vala +++ b/main/src/ui/add_conversation/add_conference_dialog.vala @@ -101,6 +101,7 @@ public class AddConferenceDialog : Gtk.Dialog { }); select_fragment.remove_jid.connect((row) => { ConferenceListRow conference_row = row as ConferenceListRow; + if (conference_row == null) return; stream_interactor.get_module(MucManager.IDENTITY).remove_bookmark(conference_row.account, conference_row.bookmark); }); -- cgit v1.2.3-70-g09d2