From: SourceForge.net <no...@so...> - 2003-03-21 21:41:17
|
Bugs item #707734, was opened at 2003-03-21 21:21 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=707734&group_id=44253 Category: UI: Windows-specific Group: Annoying Status: Open Resolution: None Priority: 5 Submitted By: Charles Reis (csreis) Assigned to: Nobody/Anonymous (nobody) Summary: NullPointer on relative directory (Windows) Initial Comment: In Windows (at least on JDK 1.4.0), if you open one file normally and then try to open another file by typing in "../directory/FileName.java", the file opens but causes a NullPointerException when setting the current directory on the file choosers: java.lang.NullPointerException at javax.swing.filechooser.FileSystemView.getParentDirectory(FileSystemView.java:430) at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:537) at edu.rice.cs.drjava.ui.MainFrame._setCurrentDirectory(MainFrame.java:2806) at edu.rice.cs.drjava.ui.MainFrame._setCurrentDirectory(MainFrame.java:2815) at edu.rice.cs.drjava.ui.MainFrame.access$7100(MainFrame.java:90) at edu.rice.cs.drjava.ui.MainFrame$ModelListener.activeDocumentChanged(MainFrame.java:3272) at edu.rice.cs.drjava.model.SingleDisplayModel$1.notifyListener(SingleDisplayModel.java:501) at edu.rice.cs.drjava.model.EventNotifier.notifyListeners(EventNotifier.java:103) at edu.rice.cs.drjava.model.SingleDisplayModel._setActiveDoc(SingleDisplayModel.java:495) at edu.rice.cs.drjava.model.SingleDisplayModel.access$300(SingleDisplayModel.java:89) at edu.rice.cs.drjava.model.SingleDisplayModel$SelectionModelListener.valueChanged(SingleDisplayModel.java:523) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214) at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:402) at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:411) at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:435) at edu.rice.cs.drjava.model.SingleDisplayModel.setActiveDocument(SingleDisplayModel.java:175) at edu.rice.cs.drjava.model.SingleDisplayModel.setActiveDocument(SingleDisplayModel.java:159) at edu.rice.cs.drjava.model.SingleDisplayModel.openFiles(SingleDisplayModel.java:362) at edu.rice.cs.drjava.ui.MainFrame.open(MainFrame.java:1301) at edu.rice.cs.drjava.ui.MainFrame._open(MainFrame.java:1296) at edu.rice.cs.drjava.ui.MainFrame.access$600(MainFrame.java:90) at edu.rice.cs.drjava.ui.MainFrame$4.actionPerformed(MainFrame.java:289) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1502) at edu.rice.cs.drjava.ui.DefinitionsPane.processKeyEvent(DefinitionsPane.java:435) at java.awt.Component.processEvent(Component.java:4830) at java.awt.Container.processEvent(Container.java:1525) at java.awt.Component.dispatchEventImpl(Component.java:3526) at java.awt.Container.dispatchEventImpl(Container.java:1582) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1700) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:568) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:740) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:673) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:534) at java.awt.Component.dispatchEventImpl(Component.java:3396) at java.awt.Container.dispatchEventImpl(Container.java:1582) at java.awt.Window.dispatchEventImpl(Window.java:1581) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at java.awt.EventDispatchThread.run(EventDispatchThread.java:98) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=707734&group_id=44253 |