mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Check PSI file validity for EA-87814
This commit is contained in:
@@ -106,6 +106,7 @@ public class ReformatCodeProcessor extends AbstractLayoutCodeProcessor {
|
||||
protected FutureTask<Boolean> prepareTask(@NotNull final PsiFile file, final boolean processChangedTextOnly)
|
||||
throws IncorrectOperationException
|
||||
{
|
||||
LOG.assertTrue(file.isValid(), "Invalid Psi file, name: " + file.getName() + " , class: " + file.getClass().getSimpleName());
|
||||
return new FutureTask<>(() -> {
|
||||
FormattingProgressTask.FORMATTING_CANCELLED_FLAG.set(false);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user