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 162048

Summary: NullPointerException at org.netbeans.modules.uml.drawingarea.persistence.PersistenceManager.hasContainerWidgetAsParent
Product: uml Reporter: ecastro <ecastro>
Component: GeneralAssignee: javydreamercsw <javydreamercsw>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 7.0   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=149018
Issue Type: DEFECT Exception Reporter: 149018
Bug Depends on: 171788    
Bug Blocks:    
Attachments: stacktrace

Description ecastro 2009-04-06 15:48:53 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP, 5.1, x86

User Comments:
ecastro: Just can't save my beautyful diagram. Arrrrggghhhh!!!!!!!!!!!!



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.uml.drawingarea.persistence.PersistenceManager.hasContainerWidgetAsParent(PersistenceManager.java:133)
        at org.netbeans.modules.uml.drawingarea.persistence.PersistenceManager.saveDiagram(PersistenceManager.java:94)
        at org.netbeans.modules.uml.drawingarea.persistence.SaveDiagram.save(SaveDiagram.java:72)
        at org.netbeans.modules.uml.drawingarea.UMLDiagramTopComponent.canClose(UMLDiagramTopComponent.java:406)
        at org.netbeans.core.windows.Central.removeModeTopComponent(Central.java:925)
        at org.netbeans.core.windows.Central.userClosedTopComponent(Central.java:1946)
Comment 1 ecastro 2009-04-06 15:49:00 UTC
Created attachment 79538 [details]
stacktrace
Comment 2 javydreamercsw 2010-08-16 21:04:36 UTC
Found an unhandled case that might be related to this issue. Should be fixed but unable to test until issue #171788 is addressed.
Comment 3 javydreamercsw 2010-08-18 12:33:02 UTC
Changeset: 9bcdbf02d990
Author:    Javier Ortiz <javier.ortiz.78@gmail.com>
Date:      2010-08-18 07:32
Message:   Handle a null child
Issue #162048 - NullPointerException at org.netbeans.modules.uml.drawingarea.persistence.PersistenceManager.hasContainerWidgetAsParent
Comment 4 javydreamercsw 2010-08-20 21:51:49 UTC
Changing to reopened since I'm having issues pushing to repository to avoid verification.
Comment 5 javydreamercsw 2010-08-21 21:04:48 UTC
Changeset: c6bcb08c414d
Author:    Javier Ortiz <javydreamercsw@netbeans.org>
Date:      2010-08-21 16:03
Message:   Handle a null child
Issue #162048 - NullPointerException at org.netbeans.modules.uml.drawingarea.persistence.PersistenceManager.hasContainerWidgetAsParent