GP-1302 - Function Call Graph - fixed stack trace due to improper action

enablement

Closes #3327
This commit is contained in:
dragonmacher 2021-09-16 19:57:00 -04:00
parent 30b7358b7f
commit 4bb1dde12c

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);
}
}
}