The Wayback Machine - https://web.archive.org/web/20201018000814/https://github.com/edvin/tornadofx/issues/991
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in Application stop method in 1.7.19 #991

Closed
RazmikDev opened this issue May 14, 2019 · 2 comments
Closed

Exception in Application stop method in 1.7.19 #991

RazmikDev opened this issue May 14, 2019 · 2 comments

Comments

@RazmikDev
Copy link

@RazmikDev RazmikDev commented May 14, 2019

Application with NoPrimaryViewSpecified as primaryView fails on shutdown (App.stop()) with following exception:

java.lang.RuntimeException: Exception in Application stop method
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:922)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$1(LauncherImpl.java:182)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: root.scene must not be null
	at tornadofx.UIComponent.unInit(Component.kt:575)
	at tornadofx.App.stop(App.kt:140)

that occurs here

root.scene.window.showingProperty().removeListener(rootSceneWindowShowingPropertyChangeListener)

Valid only for v1.7.19 - might be related with #973

@carltonwhitehead
Copy link
Contributor

@carltonwhitehead carltonwhitehead commented May 18, 2019

@RazmikDev I agree with your suspicion that it's related to #973. I made some adjustments including that line and didn't think to test NoPrimaryViewSpecified scenario. Sorry about that! I'll add a test for that scenario and fix the bug.

@edvin
Copy link
Owner

@edvin edvin commented May 18, 2019

Thank you @carltonwhitehead :)

@edvin edvin closed this in 69aa0a9 May 18, 2019
edvin pushed a commit that referenced this issue May 18, 2019
Edvin Syse
…ecified

Fix NoPrimaryViewSpecified lifecycle issue, closes #991
edvin pushed a commit that referenced this issue Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.