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

Summary: NullPointerException at org.netbeans.modules.javafx.editor.imports.ui.FixImportsLayout$FixPopup$1.mouseClicked
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: EditorAssignee: J Bachorik <yardus>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 166559
Attachments: stacktrace

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