check whether project is disposed before getting message bus

This commit is contained in:
Valentin Fondaratov
2017-01-10 17:10:38 +03:00
parent 34eda89a46
commit d4ddde8f53
@@ -238,7 +238,9 @@ public class HgRepositoryImpl extends RepositoryImpl implements HgRepository {
HgUtil.executeOnPooledThread(new Runnable() {
public void run() {
project.getMessageBus().syncPublisher(HgVcs.STATUS_TOPIC).update(project, getRoot());
if (!project.isDisposed()) {
project.getMessageBus().syncPublisher(HgVcs.STATUS_TOPIC).update(project, getRoot());
}
}
}, project);
}