summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/regtools/lib/soc_desc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/regtools/lib/soc_desc.cpp b/utils/regtools/lib/soc_desc.cpp
index 1cfbdac1f4..113d6b1dd4 100644
--- a/utils/regtools/lib/soc_desc.cpp
+++ b/utils/regtools/lib/soc_desc.cpp
@@ -1035,7 +1035,7 @@ namespace
1035std::vector< node_t > *get_children(node_ref_t node) 1035std::vector< node_t > *get_children(node_ref_t node)
1036{ 1036{
1037 if(node.is_root()) 1037 if(node.is_root())
1038 return &node.soc().get()->node; 1038 return node.soc().valid() ? &node.soc().get()->node : 0;
1039 node_t *n = node.get(); 1039 node_t *n = node.get();
1040 return n == 0 ? 0 : &n->node; 1040 return n == 0 ? 0 : &n->node;
1041} 1041}