Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6868611

FileSystemView throws NullPointerException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6u10, 7
    • Fix Version/s: 7
    • Component/s: client-libs
    • Subcomponent:
    • Resolved In Build:
      b77
    • CPU:
      generic, x86
    • OS:
      generic, windows_xp

      Description

      Sometimes the next exception occurs:
      java.io.FileNotFoundException: Execution was interrupted
              at sun.awt.shell.Win32ShellFolderManager2.createShellFolder(Win32ShellFolderManager2.java:64)
              at sun.awt.shell.ShellFolder.getShellFolder(ShellFolder.java:241)
              at javax.swing.filechooser.FileSystemView.getShellFolder(FileSystemView.java:531)
              at javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:455)
              at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:239)
              at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:228)
      Exception in thread "Basic L&F File Loading Thread" java.lang.NullPointerException
              at javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:458)
              at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:239)
              at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:228)

      It happens when JFileChooser changes current directory while the previous directory hasn't been read yet.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rupashka Pavel Porvatov (Inactive)
                Reporter:
                rupashka Pavel Porvatov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: