Skip to content

Commit

Permalink
Fix NullPointerException on a parallel run
Browse files Browse the repository at this point in the history
Reviewed-by: dbessono
  • Loading branch information
jankratochvil authored and dbessono committed Sep 1, 2022
1 parent b9f4a2c commit 2b3e2b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/com/sun/javatest/TRT_TreeNode.java
Expand Up @@ -803,8 +803,10 @@ synchronized void scanIfNeeded() {
if (Objects.equals(filesToScan[i], this.name)) {
processFile(thisDir);
} else {
processFile(new File(TestResultTable.getRootRelativePath(this) +
File.separator + filesToScan[i]));
String path = TestResultTable.getRootRelativePath(this);
processFile("".equals(path) // Zero length string if the node is a root
? new File(filesToScan[i])
: new File(path + File.separator + filesToScan[i]));
}
} // for
} else {
Expand Down

0 comments on commit 2b3e2b6

Please sign in to comment.