Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3769 FileNotFoundException with a non-existing folder path

closed-fixed
Alan Ezust
None
5
2013-02-12
2012-12-18
Bao N. Nguyen
No

The following steps will print to the terminal an FileNotFoundException in JEdit 5.0.0

1. Start jEdit with the -log=1 on to enable log
2. Follow the menu File/Open to open a the File Browse - Open window
3. Type a non-existing path in the Path text box (e.g., /crash/crash)
4. Click the Filter check box

Exception trace

10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: FileSystemView.getShellFolder: f=/crash/crash
10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: java.io.FileNotFoundException
10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: at sun.awt.shell.ShellFolder.getShellFolder(ShellFolder.java:225)
10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: at javax.swing.filechooser.FileSystemView.getShellFolder(FileSystemView.java:524)
10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: at javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:448)
10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: at org.gjt.sp.jedit.io.FileVFS._listFiles(FileVFS.java:364)
10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: at org.gjt.sp.jedit.browser.ListDirectoryBrowserTask._run(ListDirectoryBrowserTask.java:74)
10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: at org.gjt.sp.util.Task.run(Task.java:64)
10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
10:23:38 PM [jEdit Worker #2] [error] jEdit Worker #2: at java.lang.Thread.run(Thread.java:679)
10:23:38 PM [jEdit Worker #2] [error] ListDirectoryBrowserTask: java.lang.NullPointerException
10:23:38 PM [jEdit Worker #2] [error] ListDirectoryBrowserTask: at javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:451)
10:23:38 PM [jEdit Worker #2] [error] ListDirectoryBrowserTask: at org.gjt.sp.jedit.io.FileVFS._listFiles(FileVFS.java:364)
10:23:38 PM [jEdit Worker #2] [error] ListDirectoryBrowserTask: at org.gjt.sp.jedit.browser.ListDirectoryBrowserTask._run(ListDirectoryBrowserTask.java:74)
10:23:38 PM [jEdit Worker #2] [error] ListDirectoryBrowserTask: at org.gjt.sp.util.Task.run(Task.java:64)
10:23:38 PM [jEdit Worker #2] [error] ListDirectoryBrowserTask: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
10:23:38 PM [jEdit Worker #2] [error] ListDirectoryBrowserTask: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
10:23:38 PM [jEdit Worker #2] [error] ListDirectoryBrowserTask: at java.lang.Thread.run(Thread.java:679)

Discussion

  • Alan Ezust
    Alan Ezust
    2013-02-12

    Patch #3602318 applied to trunk.

     
  • Alan Ezust
    Alan Ezust
    2013-02-12

    • assigned_to: nobody --> ezust
    • status: open --> closed-fixed