提交 8e350df2 编写于 作者: M Mathieu Bastian

Fix issue in default processor with mixed graphs

上级 3d12ba9b
......@@ -132,7 +132,7 @@ public class DefaultProcessor extends AbstractProcessor implements Processor {
edge = factory.newEdge(id, source, target, edgeType, draftEdge.getWeight(), true);
break;
case MIXED:
boolean directed = draftEdge.getDirection().equals(EdgeDirection.UNDIRECTED) ? false : true;
boolean directed = draftEdge.getDirection() != null && draftEdge.getDirection().equals(EdgeDirection.UNDIRECTED) ? false : true;
edge = factory.newEdge(id, source, target, edgeType, draftEdge.getWeight(), directed);
}
edgeCount++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册