aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/e-html-editor-selection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 87138dc075..3fcdad8808 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -5746,6 +5746,8 @@ e_html_editor_selection_scroll_to_caret (EHTMLEditorSelection *selection)
WebKitDOMElement *caret;
caret = e_html_editor_selection_save_caret_position (selection);
+ if (!caret)
+ return;
view = e_html_editor_selection_ref_html_editor_view (selection);
document = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view));