From 665e97a0e011d1a3854255a7b921752bd7ef68f0 Mon Sep 17 00:00:00 2001 From: Daniel McCoy Stephenson Date: Wed, 25 Oct 2023 11:09:28 -0600 Subject: [PATCH] Added check for empty destination URL to DepositorProperties class. --- src/main/java/jpo/sdw/depositor/DepositorProperties.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/jpo/sdw/depositor/DepositorProperties.java b/src/main/java/jpo/sdw/depositor/DepositorProperties.java index 04d89da..e376661 100644 --- a/src/main/java/jpo/sdw/depositor/DepositorProperties.java +++ b/src/main/java/jpo/sdw/depositor/DepositorProperties.java @@ -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);