Fix another nil pointer panic in the HTML parser (ref #20)

This commit is contained in:
Tulir Asokan 2018-04-16 12:04:00 +03:00
parent 0d4d597909
commit 4f4e78ae0c

View File

@ -118,6 +118,9 @@ func (parser *MatrixHTMLProcessor) HandleSelfClosingTag(tagName string, attrs ma
func (parser *MatrixHTMLProcessor) HandleEndTag(tagName string) {
tag := parser.openTags.Pop(tagName)
if tag == nil {
return
}
switch tag.Tag {
case "li", "blockquote":