Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8095780

HTMLEditor failed to be added to scene graph

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Incomplete
    • Affects Version/s: 8u5
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Environment:

      Kepler Eclipse on a PC

      Description


      Our application runs well in Java 7, JavaFX 2.2 in all environments. It features an HTMLEditor Singleton that delivers an instance of the HTMLEditor component wherever needed.

      After we built the project on Java 8, the HTMLEditor failed to be added to the scene graph and the HTMLEditor skin threw a null pointer exception.

      The partial stack trace is as follows:

      Exception in thread “JavaFX Application Thread” java.lang.NullPointerException

      at com.sun.javafx.scene.web.skin.HTMLEditorSkin.populateToolbars(HTMLEditorSkin.java:768)

      at com.sun.javafx.scene.web.skin.HTMLEditorSkin.layoutChildren(HTMLEditorSkin.java:1198)

      at javafx.scene.control.Control.layoutChildren(Control.java:574)

      at javafx.scene.Parent.layout(Parent.java:1076)

      at javafx.scene.Parent.layout(Parent.java:1082)

      at javafx.scene.Parent.layout(Parent.java:1082)

      I’m using Kepler Eclipse on a PC, currently. In one version, I did not recreate the FXML. I ran as is with no changes other than to remove deprecated methods, which are unrelated. In another version, as an experiment, I used SceneBuilder to layout the HTMLEditor component and that rendered fine.

      In the non-working version, I am re-parenting the component on the scene graph as needed.

      Finally, I have tried both Caspian and Modena in JDK8. Same result.

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            rbilykjfx Robert Bilyk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: