Skip to content

Commit

Permalink
Merge pull request #10 from CDOT-CV/fix/check-for-empty-url-string
Browse files Browse the repository at this point in the history
Empty Destination URL String Check
  • Loading branch information
dmccoystephenson authored Oct 25, 2023
2 parents a169a44 + 665e97a commit 9fb5651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/jpo/sdw/depositor/DepositorProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ void initialize() {
if (getEncodeType() == null)
setEncodeType(DEFAULT_ENCODE_TYPE);

if (getDestinationUrl() == null)
if (getDestinationUrl() == null || getDestinationUrl().isEmpty()) {
setDestinationUrl(DEFAULT_DESTINATION_URL);
}

if (getSubscriptionTopics() == null || getSubscriptionTopics().length == 0) {
String topics = String.join(",", DEFAULT_SUBSCRIPTION_TOPICS);
Expand Down

0 comments on commit 9fb5651

Please sign in to comment.