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 59997

Summary: NPE and impossible add JMenuBar or JDialog to the designed form
Product: guibuilder Reporter: Marian Mirilovic <mmirilovic>
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 59972    
Attachments: NullPointerException stack trace

Description Marian Mirilovic 2005-06-15 10:10:30 UTC
NB.dev(200506142000), JDK1.5.0_04

Steps to reproduce:
- run IDE
- create JFrame
- select JMenuBar in the Component Palette
- move mouse over the designer
-> NPE rises (see attachment)
Comment 1 Marian Mirilovic 2005-06-15 10:10:54 UTC
Created attachment 22681 [details]
NullPointerException stack trace
Comment 2 Marian Mirilovic 2005-06-15 10:13:58 UTC
So happend with JDialog and layouts ...
Comment 3 Marek Grummich 2005-06-15 10:40:08 UTC
The similar issue #59587 was appeared in the past! - regression??
Comment 4 Marian Mirilovic 2005-06-15 10:46:23 UTC
I think the stack trace is different, but who does know ? :)
Comment 5 Marek Grummich 2005-06-15 11:02:08 UTC
This issue is appearead based on latest commit. The issue doesn't happen in the
build 200506131800.
Comment 6 Tomas Pavek 2005-06-15 16:53:07 UTC
Yes, the exception was caused by yesterday commit. I've fixed it in the trunk.
Will do on q-build branch tomorrow.

/cvs/form/src/org/netbeans/modules/form/HandleLayer.java,v  <--  HandleLayer.java
new revision: 1.64; previous revision: 1.63
Comment 7 Marek Grummich 2005-06-16 08:54:36 UTC
I'd say it's fixed in the today 200506151800. Mariane, if you can confirm it,
set up verification state, please. Two-phase verification ;-)
Comment 8 Marian Mirilovic 2005-06-16 10:32:26 UTC
verified in NB.dev(200506151800) ;) , I just found another NPE - but it isn so
important (issue 60119)
Comment 9 Tomas Pavek 2005-06-16 11:24:55 UTC
Fix applied to q-build branch QBE200506142000.
Comment 10 Marian Mirilovic 2005-06-22 09:05:25 UTC
verified in NB.dev(200506211800)