mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
avoid project disposed exception
This commit is contained in:
@@ -284,15 +284,13 @@ public class PySkeletonRefresher {
|
||||
cleanUpSkeletons(skeletonsDir);
|
||||
}
|
||||
|
||||
if (mustUpdateBuiltins) {
|
||||
if (mustUpdateBuiltins && myProject != null) {
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (myProject != null) {
|
||||
DaemonCodeAnalyzer.getInstance(myProject).restart();
|
||||
}
|
||||
DaemonCodeAnalyzer.getInstance(myProject).restart();
|
||||
}
|
||||
});
|
||||
}, myProject.getDisposed());
|
||||
}
|
||||
|
||||
return errorList;
|
||||
|
||||
Reference in New Issue
Block a user