Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public Object processVertex(final Adjacency adjacency, final Method method, fina
returnValue = framedGraph.addVertex(null, returnType);
newVertex = ((VertexFrame) returnValue).asVertex();
} else {
if (arguments[0] == null)
throw new IllegalArgumentException("null passed to @Adjacency " + method.getName() + " labelled " + adjacency.label());
newVertex = ((VertexFrame) arguments[0]).asVertex();
}
addEdges(adjacency, framedGraph, vertex, newVertex);
Expand Down Expand Up @@ -101,4 +103,4 @@ private void removeEdges(final Direction direction, final String label, final Ve
}
}
}
}
}