Skip to content

Commit

Permalink
Remove to-do item and update error message for null check for 'downlo…
Browse files Browse the repository at this point in the history
…adsList'
  • Loading branch information
doulikecookiedough committed Nov 1, 2024
1 parent 20b529c commit cf377e8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ public void execute(JobExecutionContext context) throws JobExecutionException {

try {
MDQconfig cfg = new MDQconfig();
// TODO: Can be null, needs to stop and throw an appropriate config
downloadListFilepath = cfg.getString("downloadsList");
log.debug("downloadListFilepath: " + downloadListFilepath);
if (downloadListFilepath == null) {
String errMsg = "Value retrieved for 'downloadsList' file path from config "
+ "(properties) is null.";
+ "(properties) is null. Please check that 'metadig.properties'.";
throw new NullPointerException(errMsg);
}
} catch (ConfigurationException | IOException ce) {
Expand Down

0 comments on commit cf377e8

Please sign in to comment.