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.
Summary: | NullPointerException at javax.swing.plaf.basic.BasicTreeUI.completeEditing | ||
---|---|---|---|
Product: | platform | Reporter: | bht <bht> |
Component: | Directory Chooser | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dheffelfinger, drazisil, exceptions_reporter, saubrecht |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 198690 |
Attachments: |
stacktrace
stacktrace |
Description
bht
2013-02-18 06:02:31 UTC
Created attachment 131511 [details]
stacktrace
*** Bug 231345 has been marked as a duplicate of this bug. *** Created attachment 137753 [details]
stacktrace
Trying to select folder for new project
*** Bug 233364 has been marked as a duplicate of this bug. *** This looks more like a bug in NetBeans dir chooser - it tries to edit a tree node but the tree layout caches isn't refreshed yet. The patch below may help: # This patch file was generated by NetBeans IDE # Following Index: paths are relative to: D:\hg\core-main # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: o.n.swing.dirchooser/src/org/netbeans/swing/dirchooser/DirectoryChooserUI.java --- o.n.swing.dirchooser/src/org/netbeans/swing/dirchooser/DirectoryChooserUI.java Base (BASE) +++ o.n.swing.dirchooser/src/org/netbeans/swing/dirchooser/DirectoryChooserUI.java Locally Modified (Based On LOCAL) @@ -1699,7 +1699,12 @@ try { newFolderNode = new DirectoryNode(fileChooser.getFileSystemView().createNewFolder(selectedNode.getFile())); model.insertNodeInto(newFolderNode, selectedNode, selectedNode.getChildCount()); + SwingUtilities.invokeLater( new Runnable() { + @Override + public void run() { applyEdit(newFolderNode); + } + }); } catch (IOException ex) { Exceptions.printStackTrace(ex); } Integrated into 'main-silver', will be available in build *201308022300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d25d137ca8eb User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #226248 - NullPointerException at javax.swing.plaf.basic.BasicTreeUI.completeEditing |