Index: camel/ChangeLog
===================================================================
--- camel/ChangeLog	(revision 8449)
+++ camel/ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2008-02-01  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #513389
+
+	* camel-url.c: (camel_url_new):
+	It's possible to pass empty string as url, so return safely.
+
 2008-02-01  Milan Crha  <mcrha@redhat.com>
 
 	** Fix for bug #211353
Index: camel/camel-url.c
===================================================================
--- camel/camel-url.c	(revision 8448)
+++ camel/camel-url.c	(working copy)
@@ -303,8 +303,10 @@
 	CamelURL *url;
 
 	g_return_val_if_fail (url_string != NULL, NULL);
-	g_return_val_if_fail (*url_string != 0, NULL);
 
+	if (!*url_string)
+		return NULL;
+
 	url = camel_url_new_with_base (NULL, url_string);
 
 	if (!url->protocol) {
