mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Exception fixed
This commit is contained in:
@@ -20,6 +20,9 @@ public class VcsActionGroup extends DefaultActionGroup {
|
||||
if (project == null){
|
||||
presentation.setVisible(false);
|
||||
presentation.setEnabled(false);
|
||||
} else if (!project.isOpen()) {
|
||||
presentation.setVisible(false);
|
||||
presentation.setEnabled(false);
|
||||
} else if (ProjectLevelVcsManager.getInstance(project).getAllActiveVcss().length == 0){
|
||||
presentation.setVisible(false);
|
||||
presentation.setEnabled(false);
|
||||
|
||||
@@ -151,7 +151,9 @@ public class IdeFrame extends JFrame implements DataProvider {
|
||||
|
||||
public Object getData(final String dataId) {
|
||||
if (DataConstants.PROJECT.equals(dataId)) {
|
||||
return myProject;
|
||||
if (myProject != null) {
|
||||
return myProject.isInitialized() ? myProject : null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user