struct variable *var =
psppire_dict_get_variable (PSPPIRE_DICT (dict), row);
+ if (var == NULL)
+ return;
+
const struct fmt_spec *format = var_get_write_format (var);
struct fmt_spec fmt = *format;
GtkWindow *win = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (sheet)));
struct variable *var =
psppire_dict_get_variable (PSPPIRE_DICT (dict), row);
+ if (var == NULL)
+ return;
+
struct missing_values mv;
if (GTK_RESPONSE_OK ==
psppire_missing_val_dialog_run (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (sheet))),
struct variable *var =
psppire_dict_get_variable (PSPPIRE_DICT (dict), row);
+ if (var == NULL)
+ return;
+
struct val_labs *vls =
psppire_val_labs_dialog_run (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (sheet))), var);
if (NULL == var)
var = psppire_dict_insert_variable (dict, row, NULL);
+ g_return_if_fail (var);
+
switch (col)
{
case DICT_TVM_COL_NAME: