On Mon, 3 Oct 2022 14:48:04 GMT, Tejesh R <[email protected]> wrote:

> … NPE doesn't occur since that previous directory check is not done.

Then I suggest going this way and just drop the checks from Metal L&F.

The test should set Metal L&F explicitly. Or better yet, it should be run in 
all L&Fs to ensure NPE isn't thrown.

<hr>

As for preserving the current value of `currentDirectory` if the passed in 
folder cannot be navigated to. I think it should be done yet it's a separate 
issue from this one. Shall I submit a new bug? Does anyone have an opinion on 
this?

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

PR: https://git.openjdk.org/jdk/pull/10485

Reply via email to