Skip to content

Commit

Permalink
Merge pull request #5501 from tnagao7/4.1-ajax-null-reference
Browse files Browse the repository at this point in the history
Backport: Fix null reference error when calling faces.ajax.request()
  • Loading branch information
BalusC authored Sep 6, 2024
2 parents c03b04e + 43b5459 commit 1247819
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ if ( !( (window.faces && window.faces.specversion && window.faces.specversion >=
* @ignore
*/
const deleteNode = function deleteNode(node) {
if (node) node.remove();
if (node && node.parentNode) node.remove();
};

/**
Expand Down

0 comments on commit 1247819

Please sign in to comment.