external system auto-import rework; npe fix

This commit is contained in:
Vladislav.Soroka
2017-02-16 16:59:02 +03:00
parent 26f6347871
commit e8384f8746
@@ -244,7 +244,9 @@ public class ExternalProjectsManager implements PersistentStateComponent<Externa
public void dispose() {
myProjectsViews.clear();
myRunManagerListener.detach();
myWatcher.stop();
if(myWatcher != null) {
myWatcher.stop();
}
myWatcher = null;
}