[maemo-commits] [maemo-commits] r11739 - projects/haf/trunk/hildon-fm/hildon-fm

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon May 21 20:28:28 EEST 2007
Author: marivoll
Date: 2007-05-21 20:28:27 +0300 (Mon, 21 May 2007)
New Revision: 11739

Modified:
   projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-model.c
Log:
	* hildon-fm/hildon-file-system-model.c
	(hildon_file_system_model_get_value): Handle NULL mime_type
	gracefully.


Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-model.c
===================================================================
--- projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-model.c	2007-05-21 17:27:39 UTC (rev 11738)
+++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-model.c	2007-05-21 17:28:27 UTC (rev 11739)
@@ -1120,8 +1120,9 @@
               /* FIXME: hack to workaround problem with Sketch files.
                * Second check is because we cannot make thumbnails for
                * images on the Gateway. */
-              if (strcmp(mime_type, "sketch/png") != 0 &&
-                  (uri && !g_str_has_prefix(uri, "obex://")))
+              if (mime_type != NULL 
+		  && strcmp(mime_type, "sketch/png") != 0
+		  && (uri && !g_str_has_prefix(uri, "obex://")))
               {
                 cat = hildon_mime_get_category_for_mime_type(mime_type);
                 if (cat == HILDON_MIME_CATEGORY_IMAGES)


More information about the maemo-commits mailing list