GO-19393: getFirstChild throws an exception if child count is 0

GitOrigin-RevId: cd52afbc6650e3d0edbfa7a2db6f6ab5c5020041
This commit is contained in:
Ilia Zakoulov
2025-11-04 19:27:41 +00:00
committed by intellij-monorepo-bot
parent 7523e6da8a
commit 37e0fbe6b9
@@ -217,6 +217,9 @@ class RecentProjectFilteringTree(
return true
}
if (root.childCount <= 0) {
return false
}
val firstChild = root.firstChild
if (firstChild != null) {
TreeUtil.selectNode(tree, firstChild)