This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


The following commit(s) were added to refs/heads/master by this push:
     new 89af6fbc0e Don't add gateway if no gateway is configured (empty value)
89af6fbc0e is described below

commit 89af6fbc0e41c88cf5892816765e88164eb256ea
Author: Wojciech Kapcia <woj...@tigase.org>
AuthorDate: Thu Apr 27 20:14:57 2023 -0400

    Don't add gateway if no gateway is configured (empty value)
---
 .../transport/mailets/remote/delivery/RemoteDeliveryConfiguration.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/remote/delivery/RemoteDeliveryConfiguration.java
 
b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/remote/delivery/RemoteDeliveryConfiguration.java
index 7c6f91f4e5..6341983131 100644
--- 
a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/remote/delivery/RemoteDeliveryConfiguration.java
+++ 
b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/remote/delivery/RemoteDeliveryConfiguration.java
@@ -202,7 +202,7 @@ public class RemoteDeliveryConfiguration {
     }
 
     private List<String> computeGatewayServers(String gatewayPort, String 
gateway) {
-        if (gateway != null) {
+        if (gateway != null && !gateway.isBlank()) {
             ImmutableList.Builder<String> builder = ImmutableList.builder();
             Iterable<String> gatewayParts = Splitter.on(',').split(gateway);
             for (String gatewayPart : gatewayParts) {


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to