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 231345 - NullPointerException at javax.swing.plaf.basic.BasicTreeUI.startEditing
Summary: NullPointerException at javax.swing.plaf.basic.BasicTreeUI.startEditing
Status: RESOLVED DUPLICATE of bug 226248
Alias: None
Product: platform
Classification: Unclassified
Component: Directory Chooser (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-17 09:17 UTC by Exceptions Reporter
Modified: 2013-06-28 10:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201466


Attachments
stacktrace (13.14 KB, text/plain)
2013-06-17 09:17 UTC, Exceptions Reporter
Details
stacktrace (13.14 KB, text/plain)
2013-06-18 08:01 UTC, host
Details
Messages Log (61.49 KB, application/octet-stream)
2013-06-20 08:10 UTC, host
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-06-17 09:17:01 UTC
This bug was originally marked as duplicate of bug 213587, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 Beta (Build 201306132201)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b12
OS: Mac OS X

User Comments:
GUEST: When I was adding a new Tomcat server instance, I opened the file dialogue to specify a private configuration location. In the dialog there I opened the directory tree up to the NetBeans configuration base directory and selected that directory. Now I clicked on the button to create a new directory (for the Tomcat Base) and got this exception.

host: When I was adding a new Tomcat server instance, I opened the file dialogue to specify a private configuration location. In the dialog there I opened the directory tree up to the NetBeans configuration base directory and selected that directory. Now I clicked on the button to create a new directory (for the Tomcat Base) and got this exception.




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.plaf.basic.BasicTreeUI.startEditing(BasicTreeUI.java:2123)
   at javax.swing.plaf.basic.BasicTreeUI.startEditingAtPath(BasicTreeUI.java:619)
   at javax.swing.JTree.startEditingAtPath(JTree.java:2390)
   at org.netbeans.swing.dirchooser.DirectoryChooserUI.applyEdit(DirectoryChooserUI.java:1719)
   at org.netbeans.swing.dirchooser.DirectoryChooserUI.access$1600(DirectoryChooserUI.java:111)
   at org.netbeans.swing.dirchooser.DirectoryChooserUI$15$1.run(DirectoryChooserUI.java:1702)
Comment 1 Exceptions Reporter 2013-06-17 09:17:03 UTC
Created attachment 135871 [details]
stacktrace
Comment 2 Ondrej Vrabec 2013-06-17 13:24:56 UTC
Is this reproducible for you? I cannot reproduce on Linux (not even on Mac) with JDK1.7u21. Looks like a JDK problem
Comment 3 host 2013-06-18 08:01:50 UTC
Created attachment 135935 [details]
stacktrace

Trying to add a directory for Tomcat's private configuration
Comment 4 host 2013-06-18 08:12:31 UTC
It is sporadically reproducible, i.e. it does not always happen and I cannot pinpoint the conditions to reproduce it.
Comment 5 host 2013-06-20 08:10:34 UTC
Created attachment 136064 [details]
Messages Log
Comment 6 host 2013-06-20 08:12:01 UTC
After a clean install of the latest NetBeans full bundle I could finally "replay" the issue. Therefore I was able to attache the necessary messages.log to the issue.
Comment 7 Ondrej Vrabec 2013-06-28 10:57:47 UTC
same problem as in bug #226248
BasicTreeUI,getPathBounds(tree, path) called from startEditing/ returns null and the return value is not checked

*** This bug has been marked as a duplicate of bug 226248 ***