Skip to content

Commit

Permalink
Added a check for mandatory parameter completion. (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonophore committed Jun 17, 2024
1 parent b8c93eb commit 7416f31
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ public class ArtifactDownloader {
private final ClassicComponentsRegistryServiceClient cregClient;

public ArtifactDownloader(String dmsUrl, String dmsToken, String dmsUser, String dmsPassword, String cregUrl) {
if (dmsUrl == null) {
throw new IllegalArgumentException("dmsUrl must be set");
}
if (cregUrl == null) {
throw new IllegalArgumentException("cregUrl must be set");
}
dmsClient = new ClassicDmsServiceClient(new DmsServiceClientParametersProvider() {
@NotNull
@Override
Expand Down

0 comments on commit 7416f31

Please sign in to comment.