IDEA-82549 NPE at WindowManagerImpl.isFullScreen() on opening new project in current window if several IDEA windows are open

This commit is contained in:
Konstantin Bulenkov
2012-03-12 10:28:52 +01:00
parent dafcbfe660
commit 12a2d193f4
2 changed files with 5 additions and 1 deletions
@@ -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