File tree 1 file changed +4
-5
lines changed
src/main/java/org/ohdsi/webapi/service
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -408,12 +408,11 @@ public JobExecutionResource performAnalysis(@PathParam("analysis_id") final int
408
408
Source source = this .getSourceRepository ().findBySourceKey (sourceKey );
409
409
String resultsTableQualifier = source .getTableQualifier (SourceDaimon .DaimonType .Results );
410
410
String cdmTableQualifier = source .getTableQualifier (SourceDaimon .DaimonType .CDM );
411
- String vocabularyTableQualifier = cdmTableQualifier ;
411
+ String vocabularyTableQualifier = source . getTableQualifierOrNull ( SourceDaimon . DaimonType . Vocabulary ) ;
412
412
413
- try {
414
- vocabularyTableQualifier = source .getTableQualifier (SourceDaimon .DaimonType .Vocabulary );
415
- } catch (Exception e ) {
416
- // No vocabulary table qualifier found - use the CDM as a default
413
+ // No vocabulary table qualifier found - use the CDM as a default
414
+ if (vocabularyTableQualifier == null ) {
415
+ vocabularyTableQualifier = cdmTableQualifier ;
417
416
}
418
417
419
418
DefaultTransactionDefinition requresNewTx = new DefaultTransactionDefinition ();
You can’t perform that action at this time.
0 commit comments