[gnome-builder] libide/tweaks: handle null more gracefully



commit 168f8925e80b0d3c4d688333c06c5a3a4f629aa3
Author: Christian Hergert <chergert redhat com>
Date:   Sat Aug 27 03:05:30 2022 -0700

    libide/tweaks: handle null more gracefully

 src/libide/tweaks/ide-tweaks-combo-row.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/libide/tweaks/ide-tweaks-combo-row.c b/src/libide/tweaks/ide-tweaks-combo-row.c
index 941ee805d..fc9016575 100644
--- a/src/libide/tweaks/ide-tweaks-combo-row.c
+++ b/src/libide/tweaks/ide-tweaks-combo-row.c
@@ -66,6 +66,9 @@ ide_tweaks_combo_row_notify_selected (IdeTweaksComboRow *self,
       GVariant *variant = ide_tweaks_choice_get_value (choice);
       GType type;
 
+      if (variant == NULL)
+        goto cleanup;
+
       if (ide_tweaks_binding_get_expected_type (self->binding, &type))
         {
           g_auto(GValue) value = G_VALUE_INIT;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]