mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-66659 - NPE: IdeFrameImpl.getStatusBar
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user