mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
EA-252361: Check window for null
(cherry picked from commit23a7dbd486) (cherry picked from commitaa4d6f14dc)
This commit is contained in:
@@ -67,8 +67,10 @@ final class FullScreenHandler {
|
||||
}
|
||||
|
||||
static FullScreenHandler getHandlerFor(final RootPaneContainer window) {
|
||||
final Object value = window.getRootPane().getClientProperty(CLIENT_PROPERTY);
|
||||
if (value instanceof FullScreenHandler) return (FullScreenHandler)value;
|
||||
if (window != null && window.getRootPane() != null) {
|
||||
final Object value = window.getRootPane().getClientProperty(CLIENT_PROPERTY);
|
||||
if (value instanceof FullScreenHandler) return (FullScreenHandler)value;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user