diff --git a/src/services/quoted-html-parser.coffee b/src/services/quoted-html-parser.coffee index c3ebe5930..ab38dff7c 100644 --- a/src/services/quoted-html-parser.coffee +++ b/src/services/quoted-html-parser.coffee @@ -184,7 +184,7 @@ class QuotedHTMLParser if weirdEl then elements.push(weirdEl) elements = _.map elements, (el) -> - if el.previousElementSibling.nodeName is "HR" + if el.previousElementSibling and el.previousElementSibling.nodeName is "HR" return el.parentElement else return el return elements