treeview: Fix crash in assertion
authorBenjamin Otte <otte@redhat.com>
Mon, 25 Sep 2023 20:10:53 +0000 (22:10 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 28 Sep 2023 00:42:44 +0000 (20:42 -0400)
commit3942590e7fa12698de16e7ff218badb1b9d70346
tree69609c3cff1252f78524672afa68dece600b60c9
parent9fb934b9fca55549a722d7e7a83ce6faa100ba79
treeview: Fix crash in assertion

The fix in commit a267dfac5d25d4ba5c1a95c82999d008fee07ac3 is wrong.
The function can return FALSE in normal operation.

Instead do a check for node == NULL that gracefully returns FALSE instead.

Fixes: #6114
gtk/deprecated/gtktreeview.c