Bugs item #774896, was opened at 2003-07-21 04:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=774896&group_id=44253
Category: User interface
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Centgraf (centgraf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bad CLI Filename throws NullPointerException
Initial Comment:
Attempting to open a file at the command line which does
not exist will throw a NullPointerException. This gets
wrapped as an UnexpectedException in DrJava.java, but
here's the original stack trace:
java.lang.NullPointerException
at javax.swing.filechooser.FileSystemView.
getParentDirectory(FileSystemView.java:457)
at javax.swing.JFileChooser.
setCurrentDirectory(JFileChooser.java:537)
at edu.rice.cs.drjava.ui.MainFrame.
_setCurrentDirectory(MainFrame.java:3215)
at edu.rice.cs.drjava.ui.MainFrame.
_setCurrentDirectory(MainFrame.java:3229)
at edu.rice.cs.drjava.ui.MainFrame.
access$7800(MainFrame.java:93)
at edu.rice.cs.drjava.ui.MainFrame$ModelListener.
activeDocumentChanged(MainFrame.java:3760)
at edu.rice.cs.drjava.model.SingleDisplayModel$1.
notifyListener(SingleDisplayModel.java:502)
...
I think we just need to add some additional safety checks
for this case.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=774896&group_id=44253
|