Skip to content

Commit

Permalink
Merge pull request #995 from Momo-Not-Emo/issue994
Browse files Browse the repository at this point in the history
add null check in removeAllEdgesOutOf method
  • Loading branch information
kadirayk authored Jul 24, 2024
2 parents 0928c89 + a7740b1 commit cdff778
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public boolean removeAllEdgesOutOf(Stmt u) {
Set<Edge> edgesToRemove = new HashSet<>();
for (QueueReader<Edge> edgeRdr = listener(); edgeRdr.hasNext(); ) {
Edge e = edgeRdr.next();
if (e.srcUnit() == u) {
if (e != null && e.srcUnit() == u) {
e.remove();
removeEdge(e, false);
edgesToRemove.add(e);
Expand Down

0 comments on commit cdff778

Please sign in to comment.