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 182199 - NullPointerException at org.netbeans.modules.javafx.editor.imports.ui.FixImportsLayout$FixPopup$1.mouseClicked
Summary: NullPointerException at org.netbeans.modules.javafx.editor.imports.ui.FixImpo...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-17 13:18 UTC by Alexandr Scherbatiy
Modified: 2010-03-22 14:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 166559


Attachments
stacktrace (1.70 KB, text/plain)
2010-03-17 13:18 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-03-17 13:18:49 UTC
Build: NetBeans IDE Dev (Build 201003160201)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP

User Comments:
sunflower: - Fix imports
- Click on the popup menu bu mouse




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javafx.editor.imports.ui.FixImportsLayout$FixPopup$1.mouseClicked(FixImportsLayout.java:313)
   at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
   at java.awt.Component.processMouseEvent(Component.java:6266)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:6028)
   at java.awt.Container.processEvent(Container.java:2041)
Comment 1 Alexandr Scherbatiy 2010-03-17 13:18:54 UTC
Created attachment 95290 [details]
stacktrace
Comment 2 J Bachorik 2010-03-17 14:05:17 UTC
Not really sure but it seems as a race condition when accessing an uninitialized variable from the mouseClick handler.
Marking the variable as volatile to put there memory barrier - http://hg.netbeans.org/javafx/rev/e0e6c0881c2e
Comment 3 Alexandr Scherbatiy 2010-03-22 14:25:51 UTC
unable to reproduce in build NetBeans-JavaFX-Soma:  #193