Fix crash on eldritch.cafe/about
This commit is contained in:
parent
5ad4923319
commit
9aa23233dd
|
@ -274,7 +274,7 @@ static inline bool should_fix_link(lxb_dom_element_t* element, const std::string
|
||||||
}
|
}
|
||||||
|
|
||||||
auto expected_element = [](lxb_dom_node_t* node, const char* expected_cls) {
|
auto expected_element = [](lxb_dom_node_t* node, const char* expected_cls) {
|
||||||
if (node->type != LXB_DOM_NODE_TYPE_ELEMENT) {
|
if (!node || node->type != LXB_DOM_NODE_TYPE_ELEMENT) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
lxb_dom_element_t* span = lxb_dom_interface_element(node);
|
lxb_dom_element_t* span = lxb_dom_interface_element(node);
|
||||||
|
|
Loading…
Reference in New Issue