mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-82549 NPE at WindowManagerImpl.isFullScreen() on opening new project in current window if several IDEA windows are open
This commit is contained in:
@@ -455,6 +455,10 @@ public class IdeFrameImpl extends JFrame implements IdeFrame, DataProvider {
|
||||
return myBalloonLayout;
|
||||
}
|
||||
|
||||
public boolean isInFullScreen() {
|
||||
return myFrameDecorator != null && myFrameDecorator.isInFullScreen();
|
||||
}
|
||||
|
||||
public void showWelcomeScreen() {
|
||||
myRootPane.showWelcomeScreen();
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ public final class WindowManagerImpl extends WindowManagerEx implements Applicat
|
||||
|
||||
@Override
|
||||
public boolean isFullScreen(@NotNull Frame frame) {
|
||||
return frame instanceof IdeFrameImpl && ((IdeFrameImpl)frame).getFrameDecorator().isInFullScreen();
|
||||
return frame instanceof IdeFrameImpl && ((IdeFrameImpl)frame).isInFullScreen();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user