Merge remote-tracking branch 'origin/GP-1302-dragonmacher-fcg-stack-trace-fix'

This commit is contained in:
Ryan Kurtz 2021-09-21 10:34:36 -04:00
commit 35feaaba92

View File

@ -1250,7 +1250,12 @@ public class FcgProvider
@Override
boolean isExpandable(FcgVertex vertex) {
Iterable<FcgVertex> vertices = getVerticesByLevel(vertex.getLevel());
return CollectionUtils.asStream(vertices).anyMatch(v -> v.canExpand());
if (direction == IN) {
return CollectionUtils.asStream(vertices)
.anyMatch(FcgVertex::canExpandIncomingReferences);
}
return CollectionUtils.asStream(vertices)
.anyMatch(FcgVertex::canExpandOutgoingReferences);
}
}
}