mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
TypeMigrationLabeler invokeLater: be prepared to possible PSI invalidations
This commit is contained in:
@@ -342,7 +342,11 @@ public class TypeMigrationLabeler {
|
||||
if (usageInfo instanceof OverriddenUsageInfo) {
|
||||
final String migrationName = ((OverriddenUsageInfo)usageInfo).getMigrateMethodName();
|
||||
if (migrationName != null) {
|
||||
ApplicationManager.getApplication().invokeLater(() -> new RenameProcessor(project, element, migrationName, false, false).run());
|
||||
ApplicationManager.getApplication().invokeLater(() -> {
|
||||
if (element.isValid()) {
|
||||
new RenameProcessor(project, element, migrationName, false, false).run();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user