Skip to content
Permalink
Browse files
GIRAPH-1175
closes #63
  • Loading branch information
dlogothetis authored and Maja Kabiljo committed Mar 13, 2018
1 parent 39eb253 commit d86d0d56e363a20ffa1ef48deea045851fc49d91
Showing 1 changed file with 5 additions and 3 deletions.
@@ -244,9 +244,11 @@ private void readOutEdges(DataInput in, Partition<I, V, E> partition)
I id = conf.createVertexId();
id.readFields(in);
Vertex<I, V, E> v = partition.getVertex(id);
checkNotNull(v, "Vertex with ID " + id + " not found in partition " +
partition.getId() + " which has " + partition.getVertexCount() +
" vertices and " + partition.getEdgeCount() + " edges.");
if (v == null) {
throw new IllegalStateException("Vertex with ID " + id + " not found in partition " +
partition.getId() + " which has " + partition.getVertexCount() +
" vertices and " + partition.getEdgeCount() + " edges.");
}
OutEdges<I, E> edges = (OutEdges<I, E>) v.getEdges();
edges.readFields(in);
partition.saveVertex(v);

0 comments on commit d86d0d5

Please sign in to comment.