From a7cbe2c61c742c4a3912c61f81834c9facc895a4 Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Wed, 27 Nov 2024 11:55:46 -0500 Subject: [PATCH] Enhance the check of envTf variable Signed-off-by: Sophia Guo --- src/org/openj9/envInfo/JavaInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/openj9/envInfo/JavaInfo.java b/src/org/openj9/envInfo/JavaInfo.java index 46242d7f..7dea134c 100644 --- a/src/org/openj9/envInfo/JavaInfo.java +++ b/src/org/openj9/envInfo/JavaInfo.java @@ -259,7 +259,7 @@ public String getTestFlag() { checkJFR(); String envTf = System.getenv("TEST_FLAG"); String paddedTf = null; - if (envTf != null) { + if (envTf != null && !envTf.isEmpty()) { testFlag = envTf; paddedTf = "," + envTf + ","; }