[recipes] Avoid a crash on the new recipe page



commit 5c0484e71b1f50f8a16f13ee49d00fd38e28fbce
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 6 17:16:46 2017 -0500

    Avoid a crash on the new recipe page

 src/gr-edit-page.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-edit-page.c b/src/gr-edit-page.c
index 26d7869..ef7257a 100644
--- a/src/gr-edit-page.c
+++ b/src/gr-edit-page.c
@@ -890,7 +890,7 @@ recipe_filter_func (GtkListBoxRow *row,
 
         r = GR_RECIPE (g_object_get_data (G_OBJECT (row), "recipe"));
 
-        if (strcmp (gr_recipe_get_id (r), gr_recipe_get_id (self->recipe)) == 0)
+        if (self->recipe && strcmp (gr_recipe_get_id (r), gr_recipe_get_id (self->recipe)) == 0)
                 return FALSE;
 
         cf = (const char *)g_object_get_data (G_OBJECT (row), "term");


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