@@ -552,14 +552,13 @@ if (isPrimary()) { throw new IllegalStateException("Cannot set owner for the primary stage"); } - this.owner = owner; - final Scene sceneValue = getScene(); if (sceneValue != null) { + this.owner = owner; SceneHelper.parentEffectiveOrientationInvalidated(sceneValue); } } /**