EA-66659 - NPE: IdeFrameImpl.getStatusBar

This commit is contained in:
Gregory.Shrago
2015-03-19 19:54:18 +03:00
parent d740f0bc68
commit d9ef4bcd92
2 changed files with 4 additions and 8 deletions
@@ -56,13 +56,9 @@ import java.util.EventListener;
public final class SwingCleanuper implements ApplicationComponent{
private final Alarm myAlarm;
/** Invoked by reflection
* @param projectManager */
SwingCleanuper(ProjectManager projectManager){
myAlarm=new Alarm();
projectManager.addProjectManagerListener(
new ProjectManagerAdapter(){
public SwingCleanuper(Application application, ProjectManager projectManager) {
myAlarm = new Alarm(application);
projectManager.addProjectManagerListener(new ProjectManagerAdapter(){
public void projectOpened(final Project project) {
myAlarm.cancelAllRequests();
}
@@ -260,7 +260,7 @@ public class IdeFrameImpl extends JFrame implements IdeFrameEx, DataProvider {
}
public StatusBar getStatusBar() {
return ((IdeRootPane)getRootPane()).getStatusBar();
return myRootPane == null ? null : myRootPane.getStatusBar();
}
public void setTitle(final String title) {