Skip to content

Commit

Permalink
Fix NPE in FeasiblityService.
Browse files Browse the repository at this point in the history
generate_stats and results_database_schema were not being passed as a job parameter, and causing a NPE.
  • Loading branch information
chrisknoll committed Jul 5, 2016
1 parent efe0d7f commit 8f6dfa0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,14 @@ public JobExecutionResource performStudy(@PathParam("study_id") final int study_
JobParametersBuilder builder = new JobParametersBuilder();
builder.addString("jobName", "performing feasibility study on " + indexRule.getName() + " : " + source.getSourceName() + " (" + source.getSourceKey() + ")");
builder.addString("cdm_database_schema", cdmTableQualifier);
builder.addString("results_database_schema", resultsTableQualifier);
builder.addString("target_database_schema", resultsTableQualifier);
builder.addString("target_dialect", source.getSourceDialect());
builder.addString("target_table", "cohort");
builder.addString("cohort_definition_id", ("" + indexRule.getId()));
builder.addString("study_id", ("" + study_id));
builder.addString("source_id", ("" + source.getSourceId()));
builder.addString("generate_stats", Boolean.TRUE.toString());

final JobParameters jobParameters = builder.toJobParameters();
final JdbcTemplate sourceJdbcTemplate = getSourceJdbcTemplate(source);
Expand Down

0 comments on commit 8f6dfa0

Please sign in to comment.