Skip to content

Commit

Permalink
Fix NPE on edge direction missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mbastian committed Mar 24, 2022
1 parent cfaa78a commit c4805b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ public void closeLoader() {
final boolean notAlreadyRemoved = edge != null
&& edgeMap.containsKey(edge.getId());

if (notAlreadyRemoved && edge.getDirection().equals(EdgeDirection.DIRECTED)) {
if (notAlreadyRemoved && edge.getDirection() != null && edge.getDirection().equals(EdgeDirection.DIRECTED)) {
EdgeDraftImpl opposite = getOpposite(edge);
if (opposite != null && edgeMap.containsKey(opposite.getId())) {
mergeDirectedEdges(opposite, edge);
Expand Down

0 comments on commit c4805b6

Please sign in to comment.