--- old/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java 2015-04-06 16:54:45.000000000 -0400 +++ new/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java 2015-04-06 16:54:45.000000000 -0400 @@ -808,7 +808,7 @@ * any further access to the Glass layer * will throw an exception */ - if (enabled && platformWindow.isClosed()) { + if (enabled && platformWindow == null || platformWindow.isClosed()) { return; } setPlatformEnabled(enabled); @@ -821,8 +821,10 @@ // Note: This method is required to workaround a glass issue mentioned in RT-12607 protected void requestToFront() { - platformWindow.toFront(); - platformWindow.requestFocus(); + if (platformWindow != null) { + platformWindow.toFront(); + platformWindow.requestFocus(); + } } public void setInEventHandler(boolean inEventHandler) {