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 129877

Summary: NullPointerException at org.netbeans.modules.form.FormDesigner$3.propertyChange
Product: guibuilder Reporter: novakm <novakm>
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=11277
Issue Type: DEFECT Exception Reporter: 11277
Attachments: stacktrace
stacktrace

Description novakm 2008-03-12 10:51:31 UTC
Build: NetBeans IDE Dev (Build 200803111205)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows Vista, 6.0, x86

User Comments: 
I was just closing several tabs in editor area. The last tab was one JFrame with only one button in it. After I closed it, NPE was thrown
Comment 1 novakm 2008-03-12 10:51:35 UTC
Created attachment 58216 [details]
stacktrace
Comment 2 novakm 2008-03-12 11:06:14 UTC
I just got the same exception when writing some code and using code completion for an action for that one button.
Comment 3 Marian Petras 2008-03-12 11:30:47 UTC
Build: NetBeans IDE Dev (Build 080311)
VM: Java HotSpot(TM) Client VM, 11.0-b11
OS: Linux, 2.6.22-14-generic, i386

User Comments: 
I closed a Java editor coupled with a form editor (but the source editor was active).
Comment 4 Marian Petras 2008-03-12 11:30:50 UTC
Created attachment 58218 [details]
stacktrace
Comment 5 Jana Maleckova 2008-03-12 11:45:06 UTC
StackTrace:
===========
java.lang.NullPointerException
        at org.netbeans.modules.form.FormDesigner$3.propertyChange(FormDesigner.java:264)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:347)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
        at java.awt.Component.firePropertyChange(Component.java:7926)
Comment 6 Jan Stola 2008-03-12 11:58:03 UTC
I was not able to reproduce this issue, but it seems to be a race-condition during closing of form. Probably an attempt 
for lazy synchronization of already closed form.
Fixed, hopefully.

Modified file: http://hg.netbeans.org/main?cmd=changeset;node=d4b1e4960e23
Comment 7 novakm 2008-03-20 12:28:10 UTC
Unable to reproduce now, verified.