I frequently get an NPE when calling stage.show() after restoring window size/location on startup. I can prevent it by calling stage.setX(value) with a smaller X value before calling stage.show(). I filed this bug: https://github.com/javafxports/openjdk-jfx/issues/492 Does anyone have a suggestion or know a fix for this?