Skip to content

Commit

Permalink
FIX NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzBuehmann committed Sep 23, 2016
1 parent 664209d commit dda1580
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -274,10 +274,12 @@ public PRConvergenceExperiment(EvaluationDataset dataset, File benchmarkDirector
}
}

public void setWorkaroundEnabled(boolean enabled) {
public void setWorkaroundEnabled(boolean enabled, SparqlEndpoint endpoint) {
cbdGen.setWorkaround(enabled);
cbdGen.setEndpoint(endpoint);
}



private void setupDatabase() {
try {
Properties config = new Properties();
Expand Down Expand Up @@ -1685,7 +1687,7 @@ public static void main(String[] args) throws Exception {
eval.setQueriesToProcessTokens(processTokens);
eval.setDatabaseName(databaseName);
eval.setDefaultCbdStructure(cbdStructureTree);
eval.setWorkaroundEnabled(options.valueOf(workaroundSpec));
eval.setWorkaroundEnabled(options.valueOf(workaroundSpec), endpoint);
eval.run(maxNrOfQueries, maxTreeDepth, exampleInterval, noiseInterval, measures);

// new QALDExperiment(Dataset.BIOMEDICAL).run();
Expand Down

0 comments on commit dda1580

Please sign in to comment.