--- gnome-desktop3-3.3.5/libgnome-desktop/gnome-bg.c	2011-03-22 14:30:46.000000000 +0000
+++ tmp/libgnome-desktop/gnome-bg.c	2012-02-13 17:05:24.219067437 +0000
@@ -305,7 +305,7 @@
 	/* Filename */
 	filename = NULL;
 	tmp = g_settings_get_string (settings, BG_KEY_PICTURE_URI);
-	if (*tmp != '\0') {
+	if (tmp != NULL && *tmp != '\0') {
 		filename = g_filename_from_uri (tmp, NULL, NULL);
 		if (filename != NULL && g_file_test (filename, G_FILE_TEST_EXISTS) == FALSE) {
 			g_free (filename);
