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 206568 - remote FileChooserBuilder uses an unfinished this => NPE
Summary: remote FileChooserBuilder uses an unfinished this => NPE
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-20 12:21 UTC by Alexander Simon
Modified: 2012-02-27 14:42 UTC (History)
2 users (show)

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 Alexander Simon 2011-12-20 12:21:55 UTC
java.lang.NullPointerException
    at org.netbeans.modules.remote.support.LocalFileSystemProvider.isMine(LocalFileSystemProvider.java:193)
    at org.netbeans.modules.remote.spi.FileSystemProvider.getFileSeparatorChar(FileSystemProvider.java:420)
    at org.netbeans.modules.remote.api.ui.FileChooserBuilder$RemoteFileChooserImpl.setCurrentDirectory(FileChooserBuilder.java:236)
    at com.apple.laf.AquaFileChooserUI$DirectoryComboBoxAction.actionPerformed(AquaFileChooserUI.java:1326)
    at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1240)
    at javax.swing.JComboBox.contentsChanged(JComboBox.java:1311)
    at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    at com.apple.laf.AquaFileChooserUI$DirectoryComboBoxModel.setSelectedItem(AquaFileChooserUI.java:1203)
    at com.apple.laf.AquaFileChooserUI$DirectoryComboBoxModel.addItem(AquaFileChooserUI.java:1196)
    at com.apple.laf.AquaFileChooserUI$2.propertyChange(AquaFileChooserUI.java:373)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    at java.awt.Component.firePropertyChange(Component.java:8239)
    at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:568)
    at org.netbeans.modules.remote.api.ui.FileChooserBuilder$RemoteFileChooserImpl.setCurrentDirectory(FileChooserBuilder.java:242)
    at javax.swing.JFileChooser.<init>(JFileChooser.java:346)
    at org.netbeans.modules.remote.api.ui.FileChooserBuilder$JFileChooserEx.<init>(FileChooserBuilder.java:84)
    at org.netbeans.modules.remote.api.ui.FileChooserBuilder$RemoteFileChooserImpl.<init>(FileChooserBuilder.java:178)
    at org.netbeans.modules.remote.api.ui.FileChooserBuilder.createFileChooser(FileChooserBuilder.java:123)
    at org.netbeans.modules.cnd.api.remote.RemoteFileUtil.createFileChooser(RemoteFileUtil.java:279)
    at org.netbeans.modules.remote.ui.OpenRemoteProjectAction.openRemoteProject(OpenRemoteProjectAction.java:166)
    at org.netbeans.modules.remote.ui.OpenRemoteProjectAction.access$000(OpenRemoteProjectAction.java:85)
    at org.netbeans.modules.remote.ui.OpenRemoteProjectAction$1.run(OpenRemoteProjectAction.java:102)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
    at java.awt.EventQueue.access$000(EventQueue.java:85)
    at java.awt.EventQueue$1.run(EventQueue.java:638)
    at java.awt.EventQueue$1.run(EventQueue.java:636)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:162)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Alexander Simon 2011-12-20 12:24:58 UTC
fix up:
http://hg.netbeans.org/cnd-main/rev/6876b8dcf72c
Comment 2 Quality Engineering 2011-12-21 15:37:43 UTC
Integrated into 'main-golden', will be available in build *201112210600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6876b8dcf72c
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #206568 remote FileChooserBuilder uses an unfinished this => NPE
- fix up
Comment 3 Vladimir Kvashin 2012-01-13 10:06:34 UTC
Changeset
http://hg.netbeans.org/cnd-main/rev/6876b8dcf72c
is a fix, not a fixup (from NB point of view - we can't fix JDK libs here)

Transplanted to blacktie: rev/26cc64fefdc5
Comment 4 Alexander Pepin 2012-01-13 17:22:43 UTC
Can not reproduce NPE in build from blacktie.
Comment 5 Vladimir Kvashin 2012-01-17 15:07:29 UTC
Integrated into release71_fixes:
http://hg.netbeans.org/releases/rev/a90d332215cc
Comment 6 Alexander Pepin 2012-02-27 14:42:24 UTC
can not reproduce in 7.1.1 rc1 build (20120214)