IDEA-104500 Gradle: Allow to reuse common logic for other external systems

Correctly handle 'unavailable project' situation
This commit is contained in:
Denis.Zhdanov
2013-06-20 18:42:34 +04:00
parent 19f7f58433
commit 0840f9c268
@@ -41,7 +41,10 @@ public class ExternalSystemIdeNotificationManager {
@NotNull String externalProjectName,
@NotNull ProjectSystemId externalSystemId)
{
ExternalSystemManager<?,?,?,?,?> manager = ExternalSystemApiUtil.getManager(externalSystemId);
if (project.isDisposed() || !project.isOpen()) {
return;
}
ExternalSystemManager<?, ?, ?, ?, ?> manager = ExternalSystemApiUtil.getManager(externalSystemId);
if (!(manager instanceof ExternalSystemConfigurableAware)) {
return;
}