On Fri, 30 Sep 2022 07:44:31 GMT, Abhishek Kumar <d...@openjdk.org> wrote:
>> When a custom `FileView` is used and folder traversal is restricted to a >> particular directory NPE occurs when user tries to traverse/select other >> folders except traversable folder. This is caused because when user selects >> folder other than traversable, the traversal is rejected and hence no file >> is selected as `currentDirectory` of `JFileChooser`. When user tries to >> access the restricted folder second time, previous selected file check is >> failing because of NPE since `getFileChooser().getCurrentDirectory();` is >> null. To fix the issue, NPE check is added. > > The instruction are not quite clear. Can you please modify it as we discussed > over call? @kumarabhi006 - Reviewer ------------- PR: https://git.openjdk.org/jdk/pull/10485