Skip to content

Commit

Permalink
If no custom JTX file is supplied, ensure it's not null (#3952)
Browse files Browse the repository at this point in the history
Signed-off-by: Mesbah-Alam <Mesbah_Alam@ca.ibm.com>

Signed-off-by: Mesbah-Alam <Mesbah_Alam@ca.ibm.com>
  • Loading branch information
Mesbah-Alam committed Sep 7, 2022
1 parent a74f02f commit b3e2751
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jck/jtrunner/JavaTestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,14 @@ public static boolean generateJTB() throws Exception {
jtxDevFullPath = "";
}

if (customJtx != null && !customJtx.equals("")) {
if (customJtx == null) {
customJtx = "";
} else {
File customJtxFile = new File(customJtx);
if (customJtxFile.exists()) {
System.out.println("Using additional custom excludes list file " + customJtx);
} else {
System.out.println("Unable to find additional custom excludes list file " + customJtx);
customJtx = "";
}
}

Expand Down

0 comments on commit b3e2751

Please sign in to comment.