Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#857 NullPointerException and InterruptedException in Definitions

open
nobody
Other (88)
1
2010-04-29
2010-04-29
Mathias Ricken
No

This seems to be a Java bug in JFileChooser and we can't do anything to fix it. I just wanted to create a record of this.

See also:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6923226
http://netbeans.org/bugzilla/show_bug.cgi?id=183357

[junit] Testsuite: edu.rice.cs.drjava.ui.DefinitionsPaneTest
[junit] Tests run: 10, Failures: 0, Errors: 1
[junit] ------------- Standard Output ---------------
[junit] java.lang.NullPointerException
[junit] at sun.awt.shell.Win32ShellFolder2.pidlsEqual(Win32ShellFolder2.java:498)
[junit] at sun.awt.shell.Win32ShellFolder2.equals(Win32ShellFolder2.java:491)
[junit] at sun.awt.shell.Win32ShellFolderManager2.isFileSystemRoot(Win32ShellFolderManager2.java:350)
[junit] at sun.awt.shell.ShellFolder.isFileSystemRoot(ShellFolder.java:242)
[junit] at javax.swing.filechooser.FileSystemView.isFileSystemRoot(FileSystemView.java:323)
[junit] at javax.swing.filechooser.WindowsFileSystemView.isTraversable(FileSystemView.java:657)
[junit] at javax.swing.JFileChooser.isTraversable(JFileChooser.java:1561)
[junit] at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:232)
[junit] at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:211)
[junit] ------------- ---------------- ---------------
[junit] Testcase: testMetaKeyPress(edu.rice.cs.drjava.ui.DefinitionsPaneTest): Caused an ERROR
[junit] java.lang.InterruptedException
[junit] edu.rice.cs.util.UnexpectedException: java.lang.InterruptedException
[junit] at edu.rice.cs.util.swing.Utilities.invokeAndWait(Utilities.java:74)
[junit] at edu.rice.cs.drjava.ui.DefinitionsPaneTest.setUp(DefinitionsPaneTest.java:87)
[junit] Caused by: java.lang.InterruptedException
[junit] at java.lang.Object.wait(Native Method)
[junit] at java.lang.Object.wait(Object.java:485)
[junit] at java.awt.EventQueue.invokeAndWait(EventQueue.java:993)
[junit] at edu.rice.cs.util.swing.Utilities.invokeAndWait(Utilities.java:73)
[junit]
[junit]
[junit] Test edu.rice.cs.drjava.ui.DefinitionsPaneTest FAILED

Discussion