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 181660 - NullPointerException at org.netbeans.modules.form.FormDesigner$7.run
Summary: NullPointerException at org.netbeans.modules.form.FormDesigner$7.run
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-09 02:37 UTC by sreimers
Modified: 2010-03-09 06:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 166121


Attachments
stacktrace (805 bytes, text/plain)
2010-03-09 02:37 UTC, sreimers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sreimers 2010-03-09 02:37:20 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4950-on-100308)
VM: Java HotSpot(TM) Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows XP

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.FormDesigner$7.run(FormDesigner.java:1815)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
   at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:131)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
Comment 1 sreimers 2010-03-09 02:37:24 UTC
Created attachment 94889 [details]
stacktrace
Comment 2 Jan Stola 2010-03-09 06:59:20 UTC
The problematic code is in EventQueue.invokeLater(). So, it seems to be some race-condition, i.e., some information is cleared before the code is executed. The corresponding code also is not a "mission-critical" one. Hence, I made a guess what is null and added a workaround for this case => fixed, hopefully.

Modified file: http://hg.netbeans.org/cdev/rev/2d406e37c0a7