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 6.1 Beta (Build 200803050202) VM: Java HotSpot(TM) Client VM, 10.0-b19 OS: Windows XP, 5.1, x86 User Comments: I am not sur, but i think this exception occurs after copying/pasting a JPanel form within a JDialog form
Created attachment 58408 [details] stacktrace
Created attachment 58409 [details] stacktrace
I am sorry, I am not able to reproduce this issue. Could you, please, provide more details. It would be ideal to attach the corresponding form (both .java and .form file) and describe what should be copied and where it should be pasted. Thank you in advance.
The exception indicates there is a component in the layout model but it is not properly included in the layout (among parent layout intervals). It looks like the copy operation failed for some reason and this is just a consequence. Thus we need exact steps to reproduce. Maybe full IDE log file would help too.
No additional information provided => closing as non-reproducible. Feel free to reopen if you are still able to reproduce it, but don't forget to provide the required information then.
Reopening - reproduced in NetBeans IDE Dev (Build 200809300201) http://statistics.netbeans.org/exceptions/detail.do?id=125482
I was not able to reproduce, using the information provided. There has not been any additional report since October 2008. I am closing this as worksforme. Please reopen, if you encounter this problem again and try to provide exact steps to reproduce. Thanks
I was finally able to find some reproducible steps: 1. Start IDE with clear userdir and create new project 2. Create new JFrame Form 3. Select the [JFrame] node in the inspector and select Add From Palette > ... > Label 4. Drag and drop a JButton from Palette next to the JLabel from previous step The exception was thrown after I clicked on the JButton in the form.
pribyl> I was finally able to find some reproducible steps: I tried to follow your steps in the latest development build but I wasn't able to reproduce this exception. Are you still able to reproduce it?
Thanks to tpavek I was able to reproduce this issue. The exact steps to reproduce are: 1. Create a new JFrame 2. Select the [JFrame] node in the inspector and select Add From Palette > ... > Label 3. Add a new JButton into the form (from the Palette window). 4. Move the JButton to another place in the form. 5. Click on the JButton => NPE is thrown.
Fixed. http://hg.netbeans.org/cdev/rev/2f8bd62278f9
Integrated into 'main-golden', will be available in build *200910160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2f8bd62278f9 User: Tomas Pavek <tpavek@netbeans.org> Log: #130186: don't remove default layer if the last component is just moved within it