From ff25d66dae0599d18cec1f1f97a0bee556786fd7 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Fri, 20 Dec 2024 11:39:27 +0100 Subject: [PATCH] LibWeb: Prevent potential null deref in editing delete action --- Libraries/LibWeb/Editing/Commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Editing/Commands.cpp b/Libraries/LibWeb/Editing/Commands.cpp index af7fd8b2c61..fd1124c0afa 100644 --- a/Libraries/LibWeb/Editing/Commands.cpp +++ b/Libraries/LibWeb/Editing/Commands.cpp @@ -214,7 +214,7 @@ bool command_delete_action(DOM::Document& document, String const&) // start node to its parent. if (start_offset == 0) { start_offset = start_node->index(); - start_node = *start_node->parent(); + start_node = start_node->parent(); continue; }