JDK-8097368 : NPE in javafx.embed.swing.JFXPanel$HostContainer
  • Type: Bug
  • Component: javafx
  • Sub-Component: swing
  • Affected Version: 8u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-04-01
  • Updated: 2017-02-08
  • Resolved: 2015-04-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60Fixed 9Fixed
Related Reports
Duplicate :  
Relates :  
Description
See BugDB https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?report_title=&rptno=20806087 for details
Comments
This was an intermittent failure, and the fix was a simple null check. As such there is no regression test. It seems like it would be difficult to create one.
22-10-2015

Why no regression test was not developed?
16-10-2015

Fixed in 8u60 and 9 ant Anton Tarasov (Inactive) added a comment - 2015-04-10 13:12 changeset: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/22c4ee1d952d
21-09-2015

changeset: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/22c4ee1d952d
10-04-2015

The following (non-confidential) comments are copied from the BugDB issue: ...where it is failing there is a WebView component that is created and not displayed. I will try to get a test case if required. I note that this appears to have been reported elsewhere: https://netbeans.org/bugzilla/show_bug.cgi?id=251346 and https://community.oracle.com/thread/3691246 The second post notes this appears to have regresed since u31 and that possibly this just requires a simple null pointer check.
02-04-2015

NPE in javafx.embed.swing.JFXPanel$HostContainer.lambda$setEmbeddedScene$53(JFXPanel.java:929)
02-04-2015