mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-02 16:41:30 +08:00
GP-1302 - Function Call Graph - fixed stack trace due to improper action
enablement Closes #3327
This commit is contained in:
+6
-1
@@ -1250,7 +1250,12 @@ public class FcgProvider
|
|||||||
@Override
|
@Override
|
||||||
boolean isExpandable(FcgVertex vertex) {
|
boolean isExpandable(FcgVertex vertex) {
|
||||||
Iterable<FcgVertex> vertices = getVerticesByLevel(vertex.getLevel());
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user