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 116667 - NPE after renaming a TestCase
Summary: NPE after renaming a TestCase
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: JBI Test Driver (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jun Qian
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 13:16 UTC by kaa
Modified: 2007-09-27 23:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
npe (2.61 KB, text/plain)
2007-09-25 13:16 UTC, kaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaa 2007-09-25 13:16:02 UTC
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
Comment 1 kaa 2007-09-25 13:16:50 UTC
Created attachment 49449 [details]
npe
Comment 2 kaa 2007-09-25 13:21:26 UTC
I'm running in the Japan locale, using a pseudo localized Netbeans.
Comment 3 Ken Frank 2007-09-25 16:07:54 UTC
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
Comment 4 Jun Qian 2007-09-25 23:51:45 UTC
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).
Comment 5 Jun Qian 2007-09-26 01:46:22 UTC
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
Comment 6 pchen 2007-09-27 01:13:26 UTC
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)
Comment 7 Jun Qian 2007-09-27 01:35:18 UTC
This was fixed on 9/25. You probably need to use a later build to verify the fix.
Comment 8 pchen 2007-09-27 23:15:06 UTC
verified fix Using build 200709271200 on WinXP