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

FXCanvas, JFXPanel: Exception when closing window

    XMLWordPrintable

    Details

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

      Description

      1) Run HelloFXCanvas
      2) Close the window
      3) You get the following exception:


      JavaFX Application Thread uncaught: java.lang.NullPointerExceptionjava.lang.NullPointerException
      at com.sun.javafx.tk.quantum.EmbeddedScene.sceneChanged(EmbeddedScene.java:93)
      at com.sun.javafx.tk.quantum.GlassScene.setStage(GlassScene.java:255)
      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$3.invalidated(Window.java:795)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:107)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:141)
      at javafx.stage.Window.setShowing(Window.java:827)
      at javafx.stage.Window.hide(Window.java:852)
      at javafx.embed.swt.FXCanvas.widgetDisposed(FXCanvas.java:387)
      at javafx.embed.swt.FXCanvas.access$10(FXCanvas.java:385)
      at javafx.embed.swt.FXCanvas$3.widgetDisposed(FXCanvas.java:284)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:123)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4155)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1470)
      at org.eclipse.swt.widgets.Widget.release(Widget.java:1308)
      at org.eclipse.swt.widgets.Control.release(Control.java:2842)
      at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:910)
      at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:338)
      at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:391)
      at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:1393)
      at org.eclipse.swt.widgets.Widget.release(Widget.java:1311)
      at org.eclipse.swt.widgets.Control.release(Control.java:2842)
      at org.eclipse.swt.widgets.Widget.dispose(Widget.java:671)
      at org.eclipse.swt.widgets.Shell.closeWidget(Shell.java:615)
      at org.eclipse.swt.widgets.Shell.windowShouldClose(Shell.java:2320)
      at org.eclipse.swt.widgets.Display.windowProc(Display.java:5530)
      at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:221)
      at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2104)
      at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2316)
      at org.eclipse.swt.widgets.Display.windowProc(Display.java:5596)
      at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5035)
      at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5184)
      at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
      at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3637)
      at hellofxcanvas.HelloFXCanvas.main(HelloFXCanvas.java:73)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              art Artem Ananiev
              Reporter:
              snorthov Steve Northover (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: