diff --git a/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp
index 8324aa5ef2..4cee08b6b4 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp
@@ -109,7 +109,8 @@ void HTMLVideoElement::set_video_track(JS::GCPtr video_track)
void HTMLVideoElement::set_current_frame(Badge, RefPtr frame, double position)
{
m_current_frame = { move(frame), position };
- layout_node()->set_needs_display();
+ if (layout_node())
+ layout_node()->set_needs_display();
}
void HTMLVideoElement::on_playing()