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 82730

Summary: operations with class removed but leaved on diagram result in NPE
Product: uml Reporter: Andrew Korostelev <akorostelev>
Component: Diagram ClassAssignee: Yang Su <sherylsu>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 82727    
Bug Blocks:    

Description Andrew Korostelev 2006-08-15 13:09:26 UTC
If user invokes transformation or dependency duiagram generation command on
nested class element removed from project but remaining on diagram, NPE is thrown.

how to reproduce:
- Create a java project
- Create a uml project and associate it to the java project
- Create a class diagram
- Add 'MyClass' class to the diagram
- Add 'Inner' class to the diagram
- Draw 'Nested Link' from 'Inner' class to 'MyClass'  
- Go to source of 'MyClass' class
- Remove 'Inner' class from 'MyClass' class
- Go to the diagram
  'Inner' class was not removed from the diagram.
invoke 'Generate Dependency diagram'. 
After new empty diagram is created NullPointerException will rise.
Comment 1 Andrew Korostelev 2006-08-15 13:15:00 UTC
This bug is caused by 80569
Comment 2 George Vasick 2007-05-17 18:36:03 UTC
Planned for drawing area upgrade after NB 6.0.
Comment 3 George Vasick 2007-05-18 00:21:42 UTC
Should not use resolved/later status.
Comment 4 George Vasick 2007-06-28 22:33:05 UTC
Targeted in drawing area redesign.
Comment 5 George Vasick 2007-07-04 00:47:52 UTC
Restoring original priority and using the standard NB waiver process.
Comment 6 Yang Su 2007-07-17 23:57:20 UTC
this is no longer an issue once issue 82727 is fixed
Comment 7 Joanne Lau 2007-09-17 17:29:03 UTC
Fix verified in trunk 200709140225
Comment 8 Peter Lam 2007-11-08 20:02:58 UTC
just remove waiver keyword 6.0_WAIVER_APPROVED for resolved issues.