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.
build 0920, ja_JP 1. Created Synchronous Sample project 2. Expand its Test folder (Projects tab) 3. Try to rename TestCase0 using mouse double click NPE appears. Reproducible with utf-8 and win-31j project encodings
Created attachment 49449 [details] npe
I'm running in the Japan locale, using a pseudo localized Netbeans.
more information is needed, please remove INCOMPLETE keyword when its provided. does it happen when in en locale ? does it happen in zh locale (that is, a locale in which there are no pseudo localized bits) ? does the renaming involve multibyte characters or not; if so, does it happen in non mbyte chars are used ? ken.frank@sun.com
This one has nothing to do with I18N. This NPE happens when renaming a test case in a fresh compapp project (where no test case has ever been run before).
IDE:------------------------------------------------- IDE: [9/25/07 5:45 PM] Committing "TestcaseNode.java" started Checking in TestcaseNode.java; /cvs/enterprise/compapp/projectjbi/src/org/netbeans/modules/compapp/test/ui/TestcaseNode.java,v <-- TestcaseNode.java new revision: 1.7; previous revision: 1.6 done IDE: [9/25/07 5:45 PM] Committing "TestcaseNode.java" finished
Using build 200709250000 on WinXP I was able to reproduce the bug. I am getting the following NPE: java.lang.NullPointerException at org.netbeans.modules.compapp.test.ui.TestcaseNode.setName(TestcaseNode.java:279) at org.openide.nodes.FilterNode.setName(FilterNode.java:460) at org.openide.explorer.view.TreeViewCellEditor.editingStopped(TreeViewCellEditor.java:115) at javax.swing.AbstractCellEditor.fireEditingStopped(Unknown Source) at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(Unknown Source) at javax.swing.DefaultCellEditor.stopCellEditing(Unknown Source) at javax.swing.DefaultCellEditor$EditorDelegate.actionPerformed(Unknown Source) at javax.swing.JTextField.fireActionPerformed(Unknown Source) at javax.swing.JTextField.postActionEvent(Unknown Source) at javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source) at javax.swing.SwingUtilities.notifyAction(Unknown Source) at javax.swing.JComponent.processKeyBinding(Unknown Source) at javax.swing.JComponent.processKeyBindings(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) [catch] at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
This was fixed on 9/25. You probably need to use a later build to verify the fix.
verified fix Using build 200709271200 on WinXP