RFR: Fix NullPointerException on a parallel run [v3]

Jonathan Gibbons jjg at openjdk.org
Thu Sep 1 01:17:25 UTC 2022


On Thu, 1 Sep 2022 00:47:23 GMT, Dmitry Bessonov <dbessono at openjdk.org> wrote:

>> What if `path` is null ?
>
> Also, it might be better not to pull in an additional constructor that was not used before, but rather maximally stick with the existing code and APi calls it does

If `null` is a possibility, check for it.

?? I don't understand the concern about referencing a different constructor that has been around since the beginning of Java time, and why it is better to do string arithmetic to construct a file path.

-------------

PR: https://git.openjdk.org/jtharness/pull/35


More information about the jtharness-dev mailing list