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 107792 - Adding Domain Template throws NPE
Summary: Adding Domain Template throws NPE
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Craig Conover
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-22 11:05 UTC by Alexandr Scherbatiy
Modified: 2007-09-13 21:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2007-06-22 11:05:33 UTC
build netbeans-hudson-trunk-1075-full.zip

Steps to reproduce:
- Go to Tools->Options->UML->Domain Templates
- Select 'Domain Families' node
- Press 'Add' button
  'Family' node appears
- Rename the node to 'C'
- Select the 'C' node
- Press 'Add' button
  NPE pops up:
java.lang.NullPointerException
  at org.netbeans.modules.uml.codegen.ui.DomainTemplatesManagerPanel.actionPerformed(DomainTemplatesManagerPanel.java:340)
  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 1 Craig Conover 2007-06-27 03:42:15 UTC
The tree model listener code was disabled for some unknown reason so node name changes were not being persisted to the
model right away. And when a node was added to the renamed node, the node could not be found by its new name in the model.
Comment 2 Joanne Lau 2007-09-13 21:32:29 UTC
Fix verified in trunk 200709121200