From 85ebb8d24e77bb4994b6a273443807de408373fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Alcarraz?= Date: Thu, 17 Aug 2023 20:09:46 -0500 Subject: [PATCH] Implement property expansion for mux key. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andrés Alcarraz --- jpos/src/main/java/org/jpos/q2/iso/QMUX.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jpos/src/main/java/org/jpos/q2/iso/QMUX.java b/jpos/src/main/java/org/jpos/q2/iso/QMUX.java index 0453a2061b..7e5b43ed2d 100644 --- a/jpos/src/main/java/org/jpos/q2/iso/QMUX.java +++ b/jpos/src/main/java/org/jpos/q2/iso/QMUX.java @@ -470,10 +470,9 @@ public void dump (PrintStream p, String indent) { metrics.dump (p, indent); } private String[] toStringArray(String s, String delimiter, String def) { - if (s == null) - s = def; + s = (s != null) ? Environment.get(s) : def; String[] arr = null; - if (s != null && s.length() > 0) { + if (s != null && !s.isEmpty()) { StringTokenizer st; if (delimiter != null) st = new StringTokenizer(s, delimiter);