Do not show error message in decompiler in write action

#EA-209667 fixed
This commit is contained in:
Ilya Kirillov
2019-08-01 11:45:58 +03:00
parent 3205b25f80
commit 474a8850b3
@@ -42,7 +42,9 @@ class KotlinBytecodeDecompilerTask(val file: KtFile) : Task.Backgroundable(file.
if (!file.isValid || file.project.isDisposed) return@runWriteAction
if (decompiledText == null) {
Messages.showErrorDialog("Cannot decompile ${file.name}", "Decompiler error")
ApplicationManager.getApplication().invokeLater {
Messages.showErrorDialog("Cannot decompile ${file.name}", "Decompiler error")
}
return@runWriteAction
}