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.
Steps to reproduce: 1) Create a new project and add new JPanel 2) Add a Tabbed Pane component 3) Add a Panel to that tabbed pane 4) Add another Panel to that tabbed pane (it will be in the first panel) 5) Drag & drop the second panel to the Tabbed pane in the Inspector result: Following NPEs are thrown: java.lang.NullPointerException at org.netbeans.modules.form.FormDesigner.checkDesignerSize(FormDesigner.java:814) at org.netbeans.modules.form.FormDesigner.access$1700(FormDesigner.java:76) ... Since then, the designer is broken... ---- NetBeans IDE 6.0 Preview (M9, build 070502) 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 Windows Vista version 6.0 running on x86 en_GB (nb); Cp1252
Created attachment 42089 [details] First NPE stacktrace
Created attachment 42090 [details] Second NPE stacktrace
This issue causes data loss. Form cannot be saved after above described scenerio is performed.
I am not able to reproduce it :(
I have also reproduced this. Just put the second panel to the same level as the first one.
Martin is really right. No I can reproduce it and after described steps, form is not possible to save. Each attempt is terminated with exception. In my case, data wasn't lost in every case but it happened often. Seems, when the last step is done, variable declaration of jPanel2 disappears from code. Tested on 5.5 and these steps passed. workaround is: delete the last added panel in inspector and then user can continue working with this form. But it's really awful and should be fixed
It's strange, but following my own scenario I'm getting different two NPEs today. I am quite sure that I attached the right files as their time of creation match. And I didn't encounter any other NPEs yesterday. I'll attach those NPEs from today as well.
Created attachment 42133 [details] Todays first NPE stacktrace
Created attachment 42134 [details] Todays second NPE stacktrace
Created attachment 42135 [details] Todays second NPE stacktrace
Sorry, I didn't select the right filetype and then didn't manage to stop browser fast enough, so the NPE4.txt file is attached two times.
I am able to reproduce this issue in M9 build. The same steps work correctly in the latest development build. So, it seems that this issue has been already fixed as a part of another fix. Hence, closing as FIXED.
Verified.
tested on NetBeans IDE 6.0 RC2 (Build 200711201000)