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.
Created attachment 114204 [details] Full stack When browsing remote file system in file chooser, try creating a directory - get a stable NPE at org.netbeans.modules.remote.api.ui.FileChooserBuilder$RemoteFileChooserImpl.setCurrentDirectory(FileChooserBuilder.java:236)
I see two problems: 1) No null check at FileChooserBuilder$RemoteFileChooserImpl.setCurrentDirectory(FileChooserBuilder.java:236) 2) FileObjectBasedFile.getParentFile(FileObjectBasedFile.java:205) returns null if there are no associated file object
Created attachment 114205 [details] Proposed fix
It should be fixed in 7.0.1 patch together with bug #204938
fixed in cnd-main: http://hg.netbeans.org/cnd-main/rev/d264ae10e19e in blacktie: rev/718e1732208e
Additional fix: cnd-main: http://hg.netbeans.org/cnd-main/rev/ec76add66ca5 blacktie: rev/e20040a23ff8
Verified in build from blacktie.
Integrated into 'main-golden', will be available in build *201201150601* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d264ae10e19e User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixed #206417 - NPE when creating a directory in remote file chooser
Integrated into release71_fixes: http://hg.netbeans.org/releases/rev/5bec818f59f4 http://hg.netbeans.org/releases/rev/58ade76f6ed3
verified in 7.1.1 rc1 build (20120214)
Despite that bug is not reproducible any more another NPE still appears when a new directory is created from the remote file chooser dialog, see bug #213875