RFR: 6616245: NullPointerException when using JFileChooser with a custom FileView [v2]

Abhishek Kumar duke at openjdk.org
Mon Oct 10 05:57:45 UTC 2022


On Tue, 4 Oct 2022 05:45:50 GMT, Tejesh R <tr at openjdk.org> wrote:

>> You say that the current directory in `JFileChooser` gets set to `null` because of forbidden navigation to a folder which is not traversable. You avoid the NPE by a null-check.
>> 
>> However, you should prevent the current directory to be set to `null`. If navigation is not allowed, the current directory should remain unchanged _instead of being reset to `null`_.
>
> @aivanov-jdk I have updated as per the review comments. Please let me know if its fine. I have put up the mach5 test link in JBS for reference.

@TejeshR13 Verified latest fix on ubuntu and fix is working fine.

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

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



More information about the client-libs-dev mailing list