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.
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
Created attachment 58216 [details] stacktrace
I just got the same exception when writing some code and using code completion for an action for that one button.
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).
Created attachment 58218 [details] stacktrace
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)
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
Unable to reproduce now, verified.