From bc471d3a264daa1bfee7219eb013d1bfb33b9199 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 14 Aug 2017 09:57:08 +0200 Subject: [PATCH] navigate from tree in a write-safe context (EA-97654 - assert: PsiModificationTrackerImpl.fireEvent) --- .../com/intellij/ide/errorTreeView/NewErrorTreeViewPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/ide/errorTreeView/NewErrorTreeViewPanel.java b/platform/platform-impl/src/com/intellij/ide/errorTreeView/NewErrorTreeViewPanel.java index 07b8cf3431aa..6d4025d337c4 100644 --- a/platform/platform-impl/src/com/intellij/ide/errorTreeView/NewErrorTreeViewPanel.java +++ b/platform/platform-impl/src/com/intellij/ide/errorTreeView/NewErrorTreeViewPanel.java @@ -22,6 +22,7 @@ import com.intellij.ide.errorTreeView.impl.ErrorTreeViewConfiguration; import com.intellij.ide.errorTreeView.impl.ErrorViewTextExporter; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.application.ModalityState; +import com.intellij.openapi.application.TransactionGuard; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.fileEditor.OpenFileDescriptor; import com.intellij.openapi.ide.CopyPasteManager; @@ -252,7 +253,7 @@ public class NewErrorTreeViewPanel extends JPanel implements DataProvider, Occur if (firstError != null) { selectElement(firstError, () -> { if (shouldShowFirstErrorInEditor()) { - navigateToSource(false); + TransactionGuard.submitTransaction(myBuilder, () -> navigateToSource(false)); } }); }