diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/repo/HgRepositoryImpl.java b/plugins/hg4idea/src/org/zmlx/hg4idea/repo/HgRepositoryImpl.java index 424ec401a94b..2fc710dca576 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/repo/HgRepositoryImpl.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/repo/HgRepositoryImpl.java @@ -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); }