From 089e5b1c06252509125cbc890a608da735491add Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 9 Oct 2015 14:12:27 -0700 Subject: [PATCH] fix(quoted-html): Fix null reference error, resolves Sentry 3264 --- src/services/quoted-html-parser.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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