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

FXCanvas fails with NPE when replacing an existing Scene

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      OS-X

      Description

      Since Java8b88 resetting the Scene inside FXCanvas fails with an NPE:

      java.lang.NullPointerException
      at com.sun.javafx.tk.quantum.EmbeddedScene.setStage(EmbeddedScene.java:99)
      at com.sun.javafx.tk.quantum.GlassStage.setScene(GlassStage.java:83)
      at com.sun.javafx.tk.quantum.EmbeddedStage.setScene(EmbeddedStage.java:62)
      at javafx.stage.Window$SceneModel.updatePeerStage(Window.java:509)
      at javafx.stage.Window$SceneModel.invalidated(Window.java:462)
      at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:109)
      at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:143)
      at javafx.stage.Window.setScene(Window.java:431)
      at com.sun.javafx.stage.EmbeddedWindow.setScene(EmbeddedWindow.java:51)
      at javafx.embed.swt.FXCanvas.setScene(FXCanvas.java:271)
      at

        Attachments

          Activity

            People

            • Assignee:
              snorthov Steve Northover (Inactive)
              Reporter:
              tschindl Tom Schindl
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: