From 2d17900f3689adab940520f1a662a6c9c033ed56 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Fri, 16 Feb 2024 15:23:20 +0000 Subject: [PATCH] Issue #3416141 by gorkagr, Jaypan, Wim Leers: big_pipe.js' checkMutation() does not check if node exists before using it --- core/modules/big_pipe/js/big_pipe.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/big_pipe/js/big_pipe.js b/core/modules/big_pipe/js/big_pipe.js index 5d592e72f16b..64a1bb95182b 100644 --- a/core/modules/big_pipe/js/big_pipe.js +++ b/core/modules/big_pipe/js/big_pipe.js @@ -89,7 +89,8 @@ */ function checkMutation(node) { return Boolean( - node.nodeType === Node.ELEMENT_NODE && + node && + node.nodeType === Node.ELEMENT_NODE && node.nodeName === 'SCRIPT' && node.dataset && node.dataset.bigPipeReplacementForPlaceholderWithId && -- GitLab