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 224725

Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutPersistenceManager.saveLayout
Product: guibuilder Reporter: rasyidridho
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: normal CC: cavad565, freshbiology, mutkch
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 197399
Attachments: stacktrace
stacktrace
stacktrace

Description rasyidridho 2013-01-10 19:50:59 UTC
This bug was originally marked as duplicate of bug 171427, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.layoutdesign.LayoutPersistenceManager.saveLayout(LayoutPersistenceManager.java:158)
   at org.netbeans.modules.form.layoutdesign.LayoutPersistenceManager.saveContainer(LayoutPersistenceManager.java:138)
   at org.netbeans.modules.form.layoutdesign.LayoutModel.saveContainerLayout(LayoutModel.java:1217)
   at org.netbeans.modules.form.GandalfPersistenceManager.saveLayout(GandalfPersistenceManager.java:3379)
   at org.netbeans.modules.form.GandalfPersistenceManager.saveContainer(GandalfPersistenceManager.java:3333)
   at org.netbeans.modules.form.GandalfPersistenceManager.saveAnyComponent(GandalfPersistenceManager.java:3306)
Comment 1 rasyidridho 2013-01-10 19:51:01 UTC
Created attachment 130088 [details]
stacktrace
Comment 2 Tomas Pavek 2013-01-11 15:11:36 UTC
This is a rather serious bug - not being able to save. Are you able to reproduce it? Could you possibly share the original GUI form where it happen? Do you remember the steps that lead to the problem? Any clue is welcomed.

The exception itself only shows what is broken in the model (missing layout component for a visual component in the form), but is not sufficient to identify how it happened. Other exceptions show some problems when trying to align components, which would also be nice to have steps for, but this should not cause the save breakage. Thanks!
Comment 3 Exceptions Reporter 2013-09-26 16:36:44 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=197399
Comment 4 Exceptions Reporter 2013-12-20 08:33:23 UTC
Created attachment 143356 [details]
stacktrace

chk
Comment 5 Exceptions Reporter 2014-01-20 15:27:51 UTC
Created attachment 144159 [details]
stacktrace