mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JRE-408 JBR-3515 fix NullPointerException in MetalRootPaneUI.installWindowListeners
(cherry picked from commit 584d554af529cff445b0f09bc2d57be55e138b7a)
(cherry picked from commit 6a42bb54bd)
This commit is contained in:
committed by
Vitaly Provodin
parent
dca1987fb5
commit
84d66eab71
@@ -233,6 +233,7 @@ public class MetalRootPaneUI extends BasicRootPaneUI
|
||||
* @param parent The parent of the JRootPane
|
||||
*/
|
||||
private void installWindowListeners(JRootPane root, Component parent) {
|
||||
if (parent == null) return;
|
||||
if (parent instanceof Window) {
|
||||
window = (Window)parent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user