Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Another fix for possible NPE in tests
- Loading branch information
1 parent
c22d678
commit 815af48
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -458,7 +458,8 @@ private static List<Path> expandMultiAppInputDirs(List<Path> input) | |
} | ||
if (!Files.isDirectory(path)) | ||
{ | ||
log.warning("Neither a file or directory found in input: " + path.toString()); | ||
String pathString = (path == null) ? "" : path.toString(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mareknovotny
Author
Contributor
|
||
log.warning("Neither a file or directory found in input: " + pathString); | ||
continue; | ||
} | ||
|
||
|
Files.isDirectory would throw an NPE if path is null. I think this check would be too late in that scenario.