This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 124878 - NPE on Properties sort mode
Summary: NPE on Properties sort mode
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: RemoteFS (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: remotefs@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-08 12:03 UTC by Dirk Estievenart
Modified: 2008-01-08 12:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Estievenart 2008-01-08 12:03:46 UTC
In the FTP explorer,  right-click and select Properties from the popup menu.
When you change the Sort mode of a folder to "By modification time", you get a NPE as described below.

java.lang.NullPointerException
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
	at java.io.FilterOutputStream.close(FilterOutputStream.java:140)
	at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:301)
	at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:130)
	at java.io.OutputStreamWriter.close(OutputStreamWriter.java:216)
	at java.io.PrintWriter.close(PrintWriter.java:295)
	at org.openide.filesystems.DefaultAttributes.saveTable(DefaultAttributes.java:593)
	at org.openide.filesystems.DefaultAttributes.writeAttribute(DefaultAttributes.java:436)
	at org.openide.filesystems.AbstractFileObject.setAttribute(AbstractFileObject.java:350)
	at org.openide.filesystems.AbstractFileObject.setAttribute(AbstractFileObject.java:333)
	at org.openide.loaders.DataFolder$SortMode.write(DataFolder.java:1070)
	at org.openide.loaders.FolderOrder.setSortMode(FolderOrder.java:99)
	at org.openide.loaders.DataFolder.setSortMode(DataFolder.java:220)
	at org.openide.loaders.DataFolder$FolderNode$1.setValue(DataFolder.java:1246)
	at org.openide.loaders.DataFolder$FolderNode$1.setValue(DataFolder.java:1252)
	at org.openide.explorer.propertysheet.NodePropertyModel.setValue(NodePropertyModel.java:110)
	at org.openide.explorer.propertysheet.PropUtils.noDlgUpdateProp(PropUtils.java:561)
	at org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:522)
	at org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:634)
	at org.openide.explorer.propertysheet.SheetCellEditor.stopCellEditing(SheetCellEditor.java:374)
	at org.openide.explorer.propertysheet.SheetCellEditor.actionPerformed(SheetCellEditor.java:241)
	at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1242)
	at org.openide.explorer.propertysheet.ComboInplaceEditor.fireActionEvent(ComboInplaceEditor.java:213)
	at javax.swing.JComboBox.setSelectedItem(JComboBox.java:569)
	at org.openide.explorer.propertysheet.ComboInplaceEditor.setSelectedItem(ComboInplaceEditor.java:193)
	at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:605)
	at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:814)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
	at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(BasicComboPopup.java:480)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)