mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
assert that refactoring is not started under write action; check validity (EA-66799 - PIEAE: StubBasedPsiElementBase.getContainingFile)
This commit is contained in:
@@ -543,6 +543,7 @@ public abstract class BaseRefactoringProcessor implements Runnable {
|
||||
return;
|
||||
}
|
||||
if (ApplicationManager.getApplication().isWriteAccessAllowed()) {
|
||||
LOG.info(new Exception());
|
||||
DumbService.getInstance(myProject).smartInvokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
@@ -122,6 +122,7 @@ public class RenameProcessor extends BaseRefactoringProcessor {
|
||||
|
||||
@Override
|
||||
public void doRun() {
|
||||
if (!myPrimaryElement.isValid()) return;
|
||||
prepareRenaming(myPrimaryElement, myNewName, myAllRenames);
|
||||
|
||||
super.doRun();
|
||||
|
||||
Reference in New Issue
Block a user