Bug #674282 - Don't crash on reply with empty selection

This commit is contained in:
Yanko Kaneti
2012-04-18 11:17:39 +03:00
parent 3cfe8dad16
commit a110f6d7f1

View File

@ -883,10 +883,10 @@ e_mail_reader_reply_to_message (EMailReader *reader,
goto whole_message;
selection = e_web_view_get_selection_html (web_view);
length = strlen (selection);
if (selection == NULL || *selection == '\0')
goto whole_message;
length = strlen (selection);
if (!html_contains_nonwhitespace (selection, length))
goto whole_message;