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 - NPE OverlayLayout.preferredLayoutSize when moving component to a JPanel
Summary: NPE OverlayLayout.preferredLayoutSize when moving component to a JPanel
Status: VERIFIED DUPLICATE of bug 62958
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks: 63381
  Show dependency tree
 
Reported: 2005-08-31 12:49 UTC by Max Sauer
Modified: 2005-09-06 10:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exceptions stack traces (8.58 KB, text/plain)
2005-08-31 12:50 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
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.