mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 23:54:13 +08:00
fix(quoted-html): Fix null reference error, resolves Sentry 3264
This commit is contained in:
parent
9107bc325e
commit
a84787859c
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ class QuotedHTMLParser
|
||||||
if weirdEl then elements.push(weirdEl)
|
if weirdEl then elements.push(weirdEl)
|
||||||
|
|
||||||
elements = _.map elements, (el) ->
|
elements = _.map elements, (el) ->
|
||||||
if el.previousElementSibling.nodeName is "HR"
|
if el.previousElementSibling and el.previousElementSibling.nodeName is "HR"
|
||||||
return el.parentElement
|
return el.parentElement
|
||||||
else return el
|
else return el
|
||||||
return elements
|
return elements
|
||||||
|
|
Loading…
Reference in a new issue