mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GO-19393: getFirstChild throws an exception if child count is 0
GitOrigin-RevId: cd52afbc6650e3d0edbfa7a2db6f6ab5c5020041
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7523e6da8a
commit
37e0fbe6b9
+3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user