The Javadoc for publishFile(Path, MediaType) and publishDirectory(Path) in TestReporter states that the file/directory must not be "blank" which does not apply to a java.nio.file.Path.
In addition, those two methods do not check the non-null preconditions for their arguments.