Fix crash on eldritch.cafe/about

This commit is contained in:
blankie 2023-12-02 15:08:41 +11:00
parent 5ad4923319
commit 9aa23233dd
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -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);