We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8121db commit 92bc3ebCopy full SHA for 92bc3eb
model-server-lib/src/main/kotlin/org/modelix/model/server/light/QueryImplementation.kt
@@ -47,7 +47,11 @@ fun RootOrSubquery.queryNodes(node: INode): Sequence<INode> {
47
return when (this) {
48
is QueryAllChildren -> node.allChildren.asSequence()
49
is QueryAncestors -> node.getAncestors(false)
50
- is QueryChildren -> node.getChildren(this.role).asSequence()
+ is QueryChildren -> try {
51
+ node.getChildren(this.role).asSequence()
52
+ } catch (e: RuntimeException) {
53
+ emptySequence()
54
+ }
55
is QueryDescendants -> node.getDescendants(false)
56
is QueryParent -> listOfNotNull(node.parent).asSequence()
57
is QueryReference -> {
0 commit comments