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.
Build: NetBeans IDE Dev (Build 200802270005) VM: Java HotSpot(TM) Client VM, 10.0-b19 OS: Windows XP, 5.1, x86 User Comments: Sudden exception reported from IDE. More details will follow.
Created attachment 57529 [details] stacktrace
*** This issue has been marked as a duplicate of 14970 ***
Issue marked as duplicate of non relevant issue.
Build: NetBeans IDE Dev (Build 200802270005) VM: Java HotSpot(TM) Client VM, 10.0-b19 OS: Windows XP, 5.1, x86 User Comments: Exception raised in IDE when moving JPanel in Designer Window (Null Layout set)
Created attachment 57535 [details] stacktrace
Created attachment 57536 [details] a.jpg (starting position of component before shift)
Created attachment 57537 [details] b.jpg (when JPanel is moved here and released, exception is raised)
Description: =========== 1] New JFrame 2] Add new JMenuBar to JFrame 3] Add new JPanel (jPanel1) to JFrame 4] Add new JPanel (jPanel2) to JFrame 5] Inspector Window: JFrame -> Set Layout -> Null Layout 6] In Designer Window move jPanel1 over JMenuBar as displayed in screenshot b.jpg This results in java.lang.AssertionError regularly but I think that the previous exception (NullPointer) is just only another consequence of the same problem.
I followed the description you wrote there and I encountered AssertionError. I will enclose it there as well. Thanks for reproducible steps. StackTrace: =========== java.lang.AssertionError at org.netbeans.modules.form.layoutdesign.LayoutModel.addInterval(LayoutModel.java:308) at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addToGroup(LayoutFeeder.java:1039) at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addInterval(LayoutFeeder.java:750) at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:307) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:806)
Created attachment 57638 [details] Assertion Error_128813
This issue has nothing to do with JMenuBar. It is sufficient to use the following steps: 1. Add two JPanels into JFrame with Free Design. 2. Change layout manager to null layout. 3. Move one panel into the other. => exception is thrown
Fixed. http://hg.netbeans.org/main/rev/bbc150777194
verified in build 200803311211