aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-09 20:31:01 +0800
committerMilan Crha <mcrha@redhat.com>2010-11-09 20:31:01 +0800
commit80d11c3d35bfb9fa716fa08ff0259098066f225e (patch)
tree07dae6fa5d5c1bbb059ae40d67d50f518fc120a2 /e-util
parentdfa68e5beb9ca892fa74d88e53109e36380e35d8 (diff)
downloadgsoc2013-evolution-80d11c3d35bfb9fa716fa08ff0259098066f225e.tar.gz
gsoc2013-evolution-80d11c3d35bfb9fa716fa08ff0259098066f225e.tar.zst
gsoc2013-evolution-80d11c3d35bfb9fa716fa08ff0259098066f225e.zip
Workaround crash when pasting nothing into html message composer
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-selection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-selection.c b/e-util/e-selection.c
index 3561dda636..3d8922a95a 100644
--- a/e-util/e-selection.c
+++ b/e-util/e-selection.c
@@ -304,6 +304,8 @@ e_selection_data_get_html (GtkSelectionData *selection_data)
length = gtk_selection_data_get_length (selection_data);
data_type = gtk_selection_data_get_data_type (selection_data);
+ g_return_val_if_fail (data != NULL, NULL);
+
/* First validate the data. Assume it's UTF-8 or UTF-16. */
if (g_utf8_validate ((const gchar *) data, length - 1, NULL))
utf8_text = g_strdup ((const gchar *) data);