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 63418

Summary: NPE OverlayLayout.preferredLayoutSize when moving component to a JPanel
Product: guibuilder Reporter: Max Sauer <msauer>
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 63381    
Attachments: exceptions stack traces

Description Max Sauer 2005-08-31 12:49:39 UTC
An endless stream of exceptions until IDE restart is thrown when moving a
component over/to a panel:

java.lang.NullPointerException
	at javax.swing.OverlayLayout.preferredLayoutSize(OverlayLayout.java:110)
	at java.awt.Container.preferredSize(Container.java:1558)
	at java.awt.Container.getPreferredSize(Container.java:1543)
...
and some other, see atached stack trace.

Steps to reproduce:
-------------------
1) Open/create a project
2) Add a JFrame form to the project
3) Add a JPanel
4) Add a component (button, textfield..) to the JFrame outside of teh panel
5) Drag the componet to the JPanel
--> exception stream

[200508301800, JDK 1.5.0_05 b03, solaris 10/sparc]
Comment 1 Max Sauer 2005-08-31 12:50:15 UTC
Created attachment 24407 [details]
exceptions stack traces
Comment 2 Max Sauer 2005-08-31 12:52:30 UTC
q-build stopper.
Comment 3 Tomas Pavek 2005-08-31 15:59:57 UTC

*** This issue has been marked as a duplicate of 62958 ***
Comment 4 Max Sauer 2005-09-06 10:28:01 UTC
Verified duplicate.