Fix bug #2878 'bsfilter / folder.c:1435 Condition identifier != NULL failed'
[claws.git] / src / plugins / bsfilter / bsfilter.c
index e86cc99..8484b2c 100644 (file)
@@ -587,7 +587,11 @@ gint plugin_init(gchar **error)
 
 FolderItem *bsfilter_get_spam_folder(MsgInfo *msginfo)
 {
-       FolderItem *item = folder_find_item_from_identifier(config.save_folder);
+       FolderItem *item = NULL;
+       
+       if (config.save_folder != NULL) {
+               item = folder_find_item_from_identifier(config.save_folder);
+       }
 
        if (item || msginfo == NULL || msginfo->folder == NULL)
                return item;