diff options
Diffstat (limited to 'mate-dictionary/src')
-rw-r--r-- | mate-dictionary/src/gdict-sidebar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mate-dictionary/src/gdict-sidebar.c b/mate-dictionary/src/gdict-sidebar.c index 9709a78d..fb0e4862 100644 --- a/mate-dictionary/src/gdict-sidebar.c +++ b/mate-dictionary/src/gdict-sidebar.c @@ -554,7 +554,8 @@ gdict_sidebar_current_page (GdictSidebar *sidebar) index = gtk_notebook_get_current_page (GTK_NOTEBOOK (priv->notebook)); page = g_slist_nth_data (priv->pages, index); - g_assert (page != NULL); + if (page == NULL) + return NULL; return page->id; } |