X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-data-store.c;h=27f5502d3be6ad71e94d109e6b6da40b48bc07a1;hb=debddb2afee6725855f1b44e3bebbb67769def55;hp=74677259f72ed65d0ab03744f810681ab82cac7f;hpb=7293c1a383d325c371bd708401e5a1d7586a4d90;p=pspp diff --git a/src/ui/gui/psppire-data-store.c b/src/ui/gui/psppire-data-store.c index 74677259f7..27f5502d3b 100644 --- a/src/ui/gui/psppire-data-store.c +++ b/src/ui/gui/psppire-data-store.c @@ -139,6 +139,8 @@ __get_value (GtkTreeModel *tree_model, PsppireDataStore *store = PSPPIRE_DATA_STORE (tree_model); const struct variable *variable = psppire_dict_get_variable (store->dict, column); + if (NULL == variable) + return; if (var_is_numeric (variable)) g_value_init (value, G_TYPE_DOUBLE); @@ -168,6 +170,9 @@ __get_type (GtkTreeModel *tree_model, gint idx) const struct variable *variable = psppire_dict_get_variable (store->dict, idx); + if (NULL == variable) + return 0; + if (var_is_numeric (variable)) return G_TYPE_DOUBLE;