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