From a49cd0ee2a95394ef6adf9a248c8067abf0d1734 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 23 Feb 2012 20:07:27 +0100 Subject: [PATCH] Fix bug #35532: Error setting PsppireDict predicate --- src/ui/gui/psppire-dictview.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/gui/psppire-dictview.c b/src/ui/gui/psppire-dictview.c index baccea7b6b..9469fa59f8 100644 --- a/src/ui/gui/psppire-dictview.c +++ b/src/ui/gui/psppire-dictview.c @@ -105,7 +105,10 @@ set_model (PsppireDictView *dict_view) { GtkTreeModel *model ; - if ( dict_view->predicate ) + if ( dict_view->dict == NULL) + return; + + if ( dict_view->predicate ) { model = gtk_tree_model_filter_new (GTK_TREE_MODEL (dict_view->dict), NULL); -- 2.30.2