summaryrefslogtreecommitdiff
path: root/net/liferea/files/patch-src_itemset.c
blob: 30c00fd850de68113ed9f891760bb8f82699a637 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git src/itemset.c src/itemset.c
index 1b4de79e..9cd12fcc 100644
--- src/itemset.c
+++ src/itemset.c
@@ -234,7 +234,7 @@ itemset_merge_item (itemSetPtr itemSet, GList *items, itemPtr item, gint maxChec
 		itemSet->ids = g_list_prepend (itemSet->ids, GUINT_TO_POINTER (item->id));
 
 		/* step 3: trigger async enrichment */
-		if (node->subscription && node->subscription->html5Extract)
+		if (node && node->subscription && node->subscription->html5Extract)
 			subscription_enrich_item (node->subscription, item);
 
 		debug (DEBUG_UPDATE, "-> added \"%s\" (id=%d) to item set %p...", item_get_title (item), item->id, itemSet);
@@ -258,7 +258,7 @@ itemset_merge_item (itemSetPtr itemSet, GList *items, itemPtr item, gint maxChec
 		}
 
 		/* step 5: Check item for new enclosures to download */
-		if (node->subscription && node->subscription->encAutoDownload) {
+		if (node && node->subscription && node->subscription->encAutoDownload) {
 			GSList *iter = metadata_list_get_values (item->metadata, "enclosure");
 			while (iter) {
 				enclosurePtr enc = enclosure_from_string (iter->data);