mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-09 09:38:07 +08:00
fix(quoted-html): Fix null reference error, resolves Sentry 3264
This commit is contained in:
parent
83f9f0e4ff
commit
089e5b1c06
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue