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 120059 - NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutDesigner.imposeCurrentContainerSize
Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutDesigner...
Status: RESOLVED INCOMPLETE
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-25 16:17 UTC by jarwilsis
Modified: 2009-07-17 12:56 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 7589


Attachments
stacktrace (1.84 KB, text/plain)
2007-10-25 16:17 UTC, jarwilsis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jarwilsis 2007-10-25 16:17:17 UTC
Build: NetBeans IDE 6.0 Beta 2 (Build 200710212201)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05
OS: Windows XP, 5.1, x86

User Comments:
Comment 1 jarwilsis 2007-10-25 16:17:39 UTC
Created attachment 51699 [details]
stacktrace
Comment 2 Jana Maleckova 2007-10-26 07:35:12 UTC
StackTrace for better query:
============================
java.lang.NullPointerException
        at org.netbeans.modules.form.layoutdesign.LayoutDesigner.imposeCurrentContainerSize(LayoutDesigner.java:3458)
        at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updatePositions(LayoutDesigner.java:162)
        at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateCurrentState(LayoutDesigner.java:100)
        at org.netbeans.modules.form.FormDesigner.updateComponentLayer(FormDesigner.java:521)
        at org.netbeans.modules.form.FormDesigner.access$1900(FormDesigner.java:100)
Comment 3 Tomas Pavek 2007-10-26 16:02:59 UTC
Looks like issue 77092 which was supposed to be fixed already. Haven't you opened some old form (created in a previous
version of NetBeans)? Or was the GUI form created in NB 6.0? Could you attach it here (both .form and .java file). If
you can reproduce the problem, please also attach full IDE log (View | IDE Log File). Thanks
Comment 4 Jan Stola 2007-11-16 08:00:59 UTC
No additional information provided => closing as WORKSFORME.
Comment 5 Exceptions Reporter 2008-01-28 15:18:59 UTC
THIS ISSUE HAS ALREADY 5 DUPLICATES
Comment 6 Exceptions Reporter 2008-10-23 13:42:52 UTC
Reopening - reproduced in NetBeans IDE 6.1 (Build 200804211638)
http://statistics.netbeans.org/exceptions/detail.do?id=132505
Comment 7 Peter Pis 2008-12-03 09:29:39 UTC
Any steps how to reproduce would be really appreciated.
Comment 8 pribyl 2009-02-10 14:51:23 UTC
No additional info provided since the last reopening -> closing again as worksforme
Comment 9 stevemac007 2009-07-16 07:06:33 UTC
Just draging some panels around on the screen caused this issue to occur.

I was trying to revert a panel drag by CTRL-Z and then the form went blank.
I then closed the design tab (no to save changes) and opened it and got this issue.

When I restarted Netbeans my form returned prior to my last edit.
Comment 10 stevemac007 2009-07-17 00:34:35 UTC
I am attempting to re-create this issue, but the exact step of changes seems to have some sort of pattern I cannot define.
The issue is caused primarily when doing drag and drop of panels within panels.

I'm hoping that the stacktrace points to areas that might be the issue.  Please let me know if there is any specific 
testing that I can do to help identify this root cause.
Comment 11 Tomas Pavek 2009-07-17 12:56:03 UTC
The exception is very general,meaning that the internal consistency of the layout model is somwhat corrupted, but it 
is not possible to tell what caused that.

We'd need a GUI form on which we could reproduce the exception. I.e. GUI form still in a good state as close as 
possible to situation when it happens. Usually saving the form when the exception happens is ok, because the GUI 
builder reverts the operation interrupted by exception.