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 258556

Summary: NullPointerException at javafx.embed.swing.JFXPanel.paintComponent
Product: platform Reporter: athompson <athompson>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 223216
Attachments: stacktrace

Description athompson 2016-03-28 16:02:50 UTC
Build: NetBeans IDE Dev (Build 201603280001)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.9.0-ea-b93, Java(TM) SE Runtime Environment, 1.9.0-ea-b93
OS: Mac OS X

User Comments:
athompson: deployed web app




Stacktrace: 
java.lang.NullPointerException
   at javafx.embed.swing.JFXPanel.paintComponent(JFXPanel.java:669)
   at javax.swing.JComponent.paint(JComponent.java:1056)
   at javax.swing.JComponent.paintChildren(JComponent.java:889)
   at javax.swing.JComponent.paint(JComponent.java:1065)
   at javax.swing.JComponent.paintChildren(JComponent.java:889)
   at javax.swing.JComponent.paint(JComponent.java:1065)
Comment 1 athompson 2016-03-28 16:02:52 UTC
Created attachment 159023 [details]
stacktrace
Comment 2 Martin Entlicher 2016-05-17 10:18:19 UTC
scenePeer is null, but there is a check for this value.
That means that someone had to call setEmbeddedScene() asynchronously, off the event thread. This might be a result of interference of two toolkits: AWT and FX.
Comment 3 Martin Entlicher 2016-05-17 11:43:39 UTC
https://bugs.openjdk.java.net/browse/JDK-8089841 is consistent with my findings.