Skip to content

Commit

Permalink
Added check for empty destination URL to DepositorProperties class.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccoystephenson committed Oct 25, 2023
1 parent a169a44 commit 665e97a
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 665e97a

Please sign in to comment.