summarylogtreecommitdiffstats
path: root/gq-1.3.4-sanity-check.patch
blob: 32596603432afcb8cc783cde6b0f1c51a8e6cb46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
commit 06582f488aab4b01670aba709485e021766659a1
Author: Terje Røsten <terje.rosten@ntnu.no>
Date:   Thu Nov 21 20:17:04 2013 +0100

    Sanity check

diff --git a/src/gq-browser-model.c b/src/gq-browser-model.c
index ee66a45..ee5fa09 100644
--- a/src/gq-browser-model.c
+++ b/src/gq-browser-model.c
@@ -183,7 +183,7 @@ gq_browser_model_validate(gconstpointer     * model,
 	g_print("browser_model_validate_iter(%p, %p): ", model, iter);
 #endif
 #warning "FIXME: check stamp"
-	if(!iter->user_data) {
+	if(!iter || !iter->user_data) {
 #ifdef DEBUG_MODEL
 		g_print("false (iter->user_data == NULL)\n");
 #endif