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.
Product Version: NetBeans IDE Dev (Build 070816) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Description: ============ have JDA project delete menu bar from view class do undo then menu bar is not visibly added back in design and sometime NPE is thrown StackTrace: =========== java.lang.NullPointerException at org.netbeans.modules.form.menu.MenuEditLayer.rebuildOnScreenMenu(MenuEditLayer.java:1144) at org.netbeans.modules.form.menu.MenuEditLayer.access$600(MenuEditLayer.java:77) at org.netbeans.modules.form.menu.MenuEditLayer$8.formChanged(MenuEditLayer.java:1090) at org.netbeans.modules.form.FormModel.fireEvents(FormModel.java:1026) at org.netbeans.modules.form.FormModel.fireEventBatch(FormModel.java:1012)
Created attachment 46743 [details] 112990
I cannot reproduce this error, but I have added code to protect against the NPE
now NPE is not thrown but issue that menu bar is not visible in design after undo action, remains
*** Issue 116698 has been marked as a duplicate of this issue. ***
I reproduced it in NB6.1Final. It was not so difficult, I managed to reproduce the issue after the first try. Form must be closed and reopened again in order to make the menu bar visible.
I guess this is a dup of issue 108676 *** This bug has been marked as a duplicate of bug 108676 ***