mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
check whether project is disposed before getting message bus
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user