Integrated: 7903784: NullPointerException: Cannot read the array length because the return value of "java.io.File.listFiles()" is null
Jaikiran Pai
jpai at openjdk.org
Thu Aug 15 16:04:59 UTC 2024
On Thu, 8 Aug 2024 06:30:07 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> Can I please get a review of this change which proposes to address NullPointerException(s) as noted in https://bugs.openjdk.org/browse/CODETOOLS-7903784?
>
> The commit here introduces null checks to the remaining usages of `File.listFiles()` call in `ScratchDirectory`. This is similar to what we did for https://bugs.openjdk.org/browse/CODETOOLS-7903538.
>
> No new test has been introduced given the nature of this change. Existing tests continue to pass.
This pull request has now been integrated.
Changeset: feee5044
Author: Jaikiran Pai <jpai at openjdk.org>
URL: https://git.openjdk.org/jtreg/commit/feee5044a785d6dcef2b3b82f7d8d11daf09e594
Stats: 21 lines in 1 file changed: 16 ins; 0 del; 5 mod
7903784: NullPointerException: Cannot read the array length because the return value of "java.io.File.listFiles()" is null
Reviewed-by: cstein, jlahoda, jjg
-------------
PR: https://git.openjdk.org/jtreg/pull/218
More information about the jtreg-dev
mailing list