From 00ced7cea74f113d1f9b225b13ef2cd261327c6c Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 5 May 2025 01:36:56 +0300 Subject: [PATCH] Fix monitor crash with non-existing node_placement nodes --- mon/osd_tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mon/osd_tree.js b/mon/osd_tree.js index a0fa9b4e..0ca115c6 100644 --- a/mon/osd_tree.js +++ b/mon/osd_tree.js @@ -110,7 +110,7 @@ function make_hier_tree(global_config, tree) if (!(tree[node_id].children||[]).length && (tree[node_id].size||0) <= 0) { const parent = tree[node_id].parent; - if (parent) + if (parent && tree[parent]) { tree[parent].children = tree[parent].children.filter(c => c != tree[node_id]); }