File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2010, 2021 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2010, 2022 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -335,13 +335,15 @@ public final synchronized boolean getDoPresent() {
335335
336336 protected Color getClearColor () {
337337 WindowStage windowStage = stage instanceof WindowStage ? (WindowStage )stage : null ;
338- if (windowStage != null && windowStage .getPlatformWindow ().isTransparentWindow ()) {
338+ if (windowStage != null && windowStage .getPlatformWindow () != null &&
339+ windowStage .getPlatformWindow ().isTransparentWindow ()) {
339340 return (Color .TRANSPARENT );
340341 } else {
341342 if (fillPaint == null ) {
342343 return Color .WHITE ;
343344 } else if (fillPaint .isOpaque () ||
344- (windowStage != null && windowStage .getPlatformWindow ().isUnifiedWindow ())) {
345+ (windowStage != null && windowStage .getPlatformWindow () != null &&
346+ windowStage .getPlatformWindow ().isUnifiedWindow ())) {
345347 //For bare windows the transparent fill is allowed
346348 if (fillPaint .getType () == Paint .Type .COLOR ) {
347349 return (Color )fillPaint ;
You can’t perform that action at this time.
0 commit comments