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 112990 - MENU: UNDO: undo done after deleting of menu bar from view class, causes NPE
Summary: MENU: UNDO: undo done after deleting of menu bar from view class, causes NPE
Status: RESOLVED DUPLICATE of bug 108676
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 116698 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-16 13:29 UTC by Jana Maleckova
Modified: 2011-11-03 19:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
112990 (2.40 KB, text/plain)
2007-08-16 13:34 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-08-16 13:29:24 UTC
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)
Comment 1 Jana Maleckova 2007-08-16 13:34:22 UTC
Created attachment 46743 [details]
112990
Comment 2 Joshua Marinacci 2007-08-16 20:46:25 UTC
I cannot reproduce this error, but I have added code to protect against the NPE
Comment 3 Jana Maleckova 2007-08-17 07:55:20 UTC
now NPE is not thrown but issue that menu bar is not visible in design after undo action, remains
Comment 4 Joshua Marinacci 2007-09-25 16:28:22 UTC
*** Issue 116698 has been marked as a duplicate of this issue. ***
Comment 5 Petr Dvorak 2008-04-29 09:46:09 UTC
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. 
Comment 6 Marian Mirilovic 2011-11-03 19:37:26 UTC
I guess this is a dup of issue 108676

*** This bug has been marked as a duplicate of bug 108676 ***