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 191206

Summary: NullPointerException at org.netbeans.modules.form.layoutsupport.griddesigner.AnimationLayer.createContainerImage
Product: guibuilder Reporter: Exceptions Reporter <exceptions_reporter>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: normal CC: AlyonaStashkova
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 172938
Attachments: stacktrace

Description Exceptions Reporter 2010-10-21 09:22:33 UTC
Build: NetBeans IDE 7.0 M2 (Build 201010151251)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows 7

User Comments:
AlyonaStashkova: Moved button to another cell within GridBag Customizer

GUEST: GridBagLayout > Change Panel Anchor to PageStart

AlyonaStashkova: Invoked GridBag Customizer, selected the table, moved the upper border down (the table did not resize), moved the bottom border up (the table did not resize), got an exeption

GUEST: GridBagLayout Customizer Dialog -> Chang Fill Property to Fill Horizontal

AlyonaStashkova: tried to expand button within GridBad to occupy more than one cell




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.layoutsupport.griddesigner.AnimationLayer.createContainerImage(AnimationLayer.java:185)
   at org.netbeans.modules.form.layoutsupport.griddesigner.AnimationLayer.animate(AnimationLayer.java:166)
   at org.netbeans.modules.form.layoutsupport.griddesigner.GlassPane$GridActionWrapper.actionPerformed(GlassPane.java:1306)
   at org.netbeans.modules.form.layoutsupport.griddesigner.GlassPane.performAction(GlassPane.java:938)
   at org.netbeans.modules.form.layoutsupport.griddesigner.GlassPane.updateLayout(GlassPane.java:216)
   at org.netbeans.modules.form.layoutsupport.griddesigner.GridDesigner$5$1.run(GridDesigner.java:378)
Comment 1 Exceptions Reporter 2010-10-21 09:22:38 UTC
Created attachment 102539 [details]
stacktrace
Comment 2 Jan Stola 2010-11-12 08:18:08 UTC
I am able to reproduce this exception in NetBeans 7.0 M2 using the following steps:

1. Create JFrame.
2. Set frame's layout to GridBagLayout.
3. Add JButton.
4. Invoke Customize Layout on the frame.
5. Select the button in the customizer.
6. Close the customizer.
7. Open the customizer again.
8. Move the button into another cell
   => exception is thrown.
Comment 3 Jan Stola 2010-11-12 08:20:08 UTC
The same steps performed in the latest development build no longer lead to the
exception. The exception was caused by customizer's listener that was not
unregistered when the customizer was closed. This was fixed in
http://hg.netbeans.org/core-main/rev/10b7a030f4ef