Skip to content

Commit 854c76b

Browse files
authored
SettingsSidebar: Fix null access when selection of SettingsSidebarRow is cleared (#347)
1 parent 2bfd734 commit 854c76b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SettingsSidebar.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ public class Switchboard.SettingsSidebar : Gtk.Widget {
9797
add_css_class (Granite.STYLE_CLASS_SIDEBAR);
9898

9999
listbox.row_selected.connect ((row) => {
100+
if (row == null) {
101+
return;
102+
}
103+
100104
stack.visible_child = ((SettingsSidebarRow) row).page;
101105
});
102106

0 commit comments

Comments
 (0)