RFR: 7903965: Fix Launching Tests from Context Menu [v2]

Oleksii Sylichenko duke at openjdk.org
Mon Mar 10 13:36:16 UTC 2025


On Mon, 10 Mar 2025 13:25:08 GMT, Oleksii Sylichenko <duke at openjdk.org> wrote:

>> `PsiDirectory#getVirtualFile` should not return `null` due to its annotated with `@NotNull`:
>> 
>> ![PsiDirectory#getVirtualFile](https://github.com/user-attachments/assets/1d222ffe-5a3c-49cc-a70c-5e6a8daef9ac)
>
> On the other hand, a file element could produce null for `getVirtualFile()`:
> 
> ![image](https://github.com/user-attachments/assets/15dcfd4b-7b87-4387-a0e8-440d65fff0e7)
> 
> ok, I will add check there

Added `null` check for the file-case: 3a3f10197c0670da4489d13b66cbabca10873b77

I will check if `JTRegDirectoryConfigurationProducer` is needed.

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

PR Review Comment: https://git.openjdk.org/jtreg/pull/252#discussion_r1987297222


More information about the jtreg-dev mailing list