no message
This commit is contained in:
parent
70db55dd5e
commit
fc94d9eaab
|
@ -45,6 +45,7 @@ public class ConfigLoaderImpl implements ConfigLoader{
|
|||
zenodoConfig = mapper.readValue(getStreamFromPath(environment.getProperty("configuration.zenodo")), ZenodoConfig.class);
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getLocalizedMessage(), e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return zenodoConfig;
|
||||
|
|
|
@ -188,7 +188,7 @@ public class ZenodoDeposit implements RepositoryDeposit {
|
|||
@Override
|
||||
public RepositoryDepositConfiguration getConfiguration() {
|
||||
ZenodoConfig zenodoConfig = this.configLoader.getZenodoConfig();
|
||||
return zenodoConfig.toRepoConfig();
|
||||
return (zenodoConfig != null) ? zenodoConfig.toRepoConfig() : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue