summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp
index d213cb4385..735ab0e1f2 100644
--- a/Userland/Libraries/LibWeb/DOM/Node.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Node.cpp
@@ -1015,7 +1015,7 @@ bool Node::is_uninteresting_whitespace_node() const
return false;
if (!layout_node())
return true;
- if (layout_node()->parent()->is_anonymous())
+ if (auto parent = layout_node()->parent(); parent && parent->is_anonymous())
return true;
return false;
}