From: SourceForge.net <no...@so...> - 2007-03-24 21:46:19
|
Bugs item #1687575, was opened at 2007-03-24 17:46 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=1687575&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Definitions (source editor) Group: 2: Annoying Status: Open Resolution: None Priority: 5 Private: No Submitted By: Chris Warrington (c45207) Assigned to: Nobody/Anonymous (nobody) Summary: NullPointerException when saving file after creating directo Initial Comment: When I was saving a file, I needed to create a new directory. After creating the new directory, the save button changed to an open button. I was able to navigate into the new directory, however, the open button did not turn into a save button. When I clicked in the filename edit field, the open button turned into a save button and this exception was thrown. The program seems to work fine after this exception. java.lang.NullPointerException at javax.swing.JComponent.repaint(Unknown Source) at sun.swing.FilePane$2.repaintListSelection(Unknown Source) at sun.swing.FilePane$2.repaintSelection(Unknown Source) at sun.swing.FilePane$2.focusLost(Unknown Source) at java.awt.AWTEventMulticaster.focusLost(Unknown Source) at java.awt.Component.processFocusEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Unknown Source) at javax.swing.JFileChooser.showDialog(Unknown Source) at javax.swing.JFileChooser.showSaveDialog(Unknown Source) at edu.rice.cs.drjava.ui.MainFrame.getSaveFile(MainFrame.java:3355) at edu.rice.cs.drjava.ui.MainFrame$5.getFile(MainFrame.java:293) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.saveFileAs(AbstractGlobalModel.java:3195) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.saveFile(AbstractGlobalModel.java:3154) at edu.rice.cs.drjava.ui.MainFrame._save(MainFrame.java:3965) at edu.rice.cs.drjava.ui.MainFrame.access$2500(MainFrame.java:109) at edu.rice.cs.drjava.ui.MainFrame$28.actionPerformed(MainFrame.java:529) at javax.swing.SwingUtilities.notifyAction(Unknown Source) at edu.rice.cs.drjava.ui.DefinitionsPane.processKeyEvent(DefinitionsPane.java:571) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) System Properties: DrJava Version 20070322-2314 drjava.debug.port = 49962 java.runtime.name = Java(TM) SE Runtime Environment sun.boot.library.path = C:\Java\jre1.6.0\bin java.vm.version = 1.6.0-b105 java.vm.vendor = Sun Microsystems Inc. java.vendor.url = http://java.sun.com/ path.separator = ; java.vm.name = Java HotSpot(TM) Client VM file.encoding.pkg = sun.io sun.java.launcher = SUN_STANDARD user.country = US sun.os.patch.level = java.vm.specification.name = Java Virtual Machine Specification user.dir = <anonymized user.home>\Desktop java.runtime.version = 1.6.0-b105 java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment java.endorsed.dirs = C:\Java\jre1.6.0\lib\endorsed os.arch = x86 java.io.tmpdir = <anonymized user.home>\AppData\Local\Temp\ line.separator = "\u000d\u000a" java.vm.specification.vendor = Sun Microsystems Inc. user.variant = os.name = Windows Vista sun.jnu.encoding = Cp1252 java.library.path = C:\Java\jre1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Subversion\bin;C:\Program Files\Subversion;C:\Program Files\GnuPG;c:\Program Files\PuTTY;C:\Program Files\CVSNT\ java.specification.name = Java Platform API Specification java.class.version = 50.0 sun.management.compiler = HotSpot Client Compiler os.version = 6.0 user.home = <anonymized user.home> user.timezone = America/Chicago java.awt.printerjob = sun.awt.windows.WPrinterJob file.encoding = Cp1252 java.specification.version = 1.6 java.class.path = <anonymized user.home>\Desktop\drjava-15.jar user.name = <anonymized user.name> java.vm.specification.version = 1.0 java.home = C:\Java\jre1.6.0 sun.arch.data.model = 32 user.language = en java.specification.vendor = Sun Microsystems Inc. awt.toolkit = sun.awt.windows.WToolkit java.vm.info = mixed mode, sharing java.version = 1.6.0 java.ext.dirs = C:\Java\jre1.6.0\lib\ext;C:\Windows\Sun\Java\lib\ext sun.boot.class.path = C:\Java\jre1.6.0\lib\resources.jar;C:\Java\jre1.6.0\lib\rt.jar;C:\Java\jre1.6.0\lib\sunrsasign.jar;C:\Java\jre1.6.0\lib\jsse.jar;C:\Java\jre1.6.0\lib\jce.jar;C:\Java\jre1.6.0\lib\charsets.jar;C:\Java\jre1.6.0\classes java.vendor = Sun Microsystems Inc. file.separator = \ java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi sun.io.unicode.encoding = UnicodeLittle sun.cpu.endian = little java.rmi.server.hostname = 127.0.0.1 sun.desktop = windows sun.awt.exception.handler = edu.rice.cs.drjava.ui.DrJavaErrorHandler sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86 #DrJava configuration file #Sat Mar 24 16:41:44 CDT 2007 javac.location = C:\\Java\\jdk1.6.0\\lib\\tools.jar definitions.type.color = #990099 font.doclist = Segoe UI-11 font.toolbar = Segoe UI-11 text.antialias = true look.and.feel = com.sun.java.swing.plaf.windows.WindowsLookAndFeel key.delete.next = shift DELETE key.delete.previous = shift BACK_SPACE find.replace.match.case = false quit.prompt = false interactions.reset.prompt = false save.before.compile = true open.folder.recursive = true indent.level = 4 recent.files = [D:\\Data\\<anonymized user.name>\\Documents\\School\\COMP314\\projects\\p2\\g13\\trunk\\src\\gzip\\test\\types\\ThreeByteStringTest.java,D:\\Data\\<anonymized user.name>\\Documents\\School\\COMP314\\projects\\p2\\g13\\trunk\\src\\gzip\\types\\ThreeByteString.java,D:\\Data\\<anonymized user.name>\\Documents\\School\\COMP314\\projects\\p2\\g13\\trunk\\src\\gzip\\test\\types\\CircularBufferTest.java,D:\\Data\\<anonymized user.name>\\Documents\\School\\COMP314\\projects\\p2\\g13\\trunk\\src\\gzip\\types\\CircularBuffer.java,D:\\Data\\<anonymized user.name>\\Documents\\School\\COMP314\\projects\\p2\\g13\\trunk\\src\\gzip\\GzipMain.java] recent.projects = [D:\\Data\\<anonymized user.name>\\Documents\\School\\COMP314\\projects\\p2\\g13\\trunk\\gzip.pjt,D:\\Data\\<anonymized user.name>\\Documents\\School\\COMP312\\drjava\\drjava.pjt,D:\\Data\\<anonymized user.name>\\Documents\\School\\COMP312\\plt\\plt.pjt] window.height = 754 window.width = 1040 window.x = -8 window.y = -8 doc.list.width = 304 debug.panel.height = 102 last.dir = D:\\Data\\<anonymized user.name>\\Documents\\School\\COMP314\\projects\\p2\\g13\\trunk\\src\\gzip\\test\\huffman\\deflate\\dynamic\\CodeLengthTreeMapperTest.java last.interactions.dir = D:\\Data\\<anonymized user.name>\\Documents\\School\\COMP314\\projects\\p2\\g13\\trunk Used memory: about 30.59 megabytes Free memory: about 25.87 megabytes Total memory: about 56.46 megabytes Total memory can expand to: about 63.56 megabytes ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1687575&group_id=44253 |