Skip to content

Commit

Permalink
Merge pull request #200 from HSLdevcom/fix-bikeupdater-npe
Browse files Browse the repository at this point in the history
Wait until graph has vertices
  • Loading branch information
vesameskanen committed Apr 25, 2018
2 parents a086893 + 5a2874d commit 18e14e8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ protected void configurePolling (Graph graph, JsonNode config) throws Exception

@Override
public void setup() throws InterruptedException, ExecutionException {
while (graph.getVertices() == null) {
LOG.warn("Graph has no vertices. Sleeping 5 sec");
Thread.sleep(5000);
}
// Creation of network linker library will not modify the graph
linker = new SimpleStreetSplitter(graph);

Expand Down

0 comments on commit 18e14e8

Please sign in to comment.