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 190899 - Listener on selected nodes not unregistered when grid-designer is closed
Summary: Listener on selected nodes not unregistered when grid-designer is closed
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-11 09:58 UTC by Jan Stola
Modified: 2010-10-11 14:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2010-10-11 09:58:59 UTC
Steps to reproduce:
1. Open grid-designer, i.e., invoke Customizer Layout action
   on some container with GridBagLayout
2. Select some component in the grid-designer.
3. Close the grid-designer.
4. Select the same component in the "normal" designer (in main window).
5. Change some property of the component.
   => the following exception is thrown

java.lang.NullPointerException
 at o.n.m.form.layoutsupport.griddesigner.AnimationLayer.createContainerImage
    (AnimationLayer.java:185)
 at o.n.m.form.layoutsupport.griddesigner.AnimationLayer.animate
    (AnimationLayer.java:166)
 at o.n.m.form.layoutsupport.griddesigner.GlassPane$GridActionWrapper
    .actionPerformed(GlassPane.java:1306)
 at o.n.m.form.layoutsupport.griddesigner.GlassPane.performAction
    (GlassPane.java:938)
 at o.n.m.form.layoutsupport.griddesigner.GlassPane.updateLayout
    (GlassPane.java:216)
 at o.n.m.form.layoutsupport.griddesigner.GridDesigner$5$1.run
    (GridDesigner.java:378)
 ...
Comment 1 Jan Stola 2010-10-11 14:10:20 UTC
Fixed.

Modified file: http://hg.netbeans.org/cdev/rev/10b7a030f4ef