Skip to content

Commit a3ea8da

Browse files
committed
SettingsSidebar: Fix null access when selection of SettingsSidebarRow is cleared
1 parent 2bfd734 commit a3ea8da

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)