BUG 606811 - evolution crashed in match_content_type at camel-folder-summary.c:5066
authorBharath Acharya <abharath@novell.com>
Thu, 11 Feb 2010 10:18:58 +0000 (15:48 +0530)
committerBharath Acharya <abharath@novell.com>
Thu, 11 Feb 2010 10:18:58 +0000 (15:48 +0530)
Avoids the crash. Regression because of
http://git.gnome.org/browse/evolution/commit/?id=6a72dacb7db51cd0f6b84e9aefd248677c0ff4e0

camel/camel-folder-summary.c

index 90a10e4..96574a7 100644 (file)
@@ -5085,7 +5085,7 @@ camel_folder_summary_guess_content_info (CamelMessageInfo *mi, CamelContentType
                const CamelMessageContentInfo *child = ci;
 
                do {
-                       if (match_content_type (child->type, ctype))
+                       if (child->type && match_content_type (child->type, ctype))
                                return child;
 
                        child = child->next;