From 677c80ea5e1ff2f8c6ab529169a78c7026e25d40 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 21 May 2015 16:13:42 +0200 Subject: [PATCH] a bit more diagnostics for EA-68284 - assert: PsiDocumentManagerBase.finishCommitInWriteAction --- .../src/com/intellij/psi/impl/PsiDocumentManagerBase.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/core-impl/src/com/intellij/psi/impl/PsiDocumentManagerBase.java b/platform/core-impl/src/com/intellij/psi/impl/PsiDocumentManagerBase.java index 34525cbd8c1d..3fab52473d60 100644 --- a/platform/core-impl/src/com/intellij/psi/impl/PsiDocumentManagerBase.java +++ b/platform/core-impl/src/com/intellij/psi/impl/PsiDocumentManagerBase.java @@ -296,8 +296,7 @@ public abstract class PsiDocumentManagerBase extends PsiDocumentManager implemen if (ok[0]) { // otherwise changes maybe not synced to the document yet, and injectors will crash if (!mySynchronizer.isDocumentAffectedByTransactions(document)) { - final InjectedLanguageManager injectedLanguageManager = InjectedLanguageManager.getInstance(myProject); - if (injectedLanguageManager != null) injectedLanguageManager.startRunInjectors(document, synchronously); + InjectedLanguageManager.getInstance(myProject).startRunInjectors(document, synchronously); } // run after commit actions outside write action runAfterCommitActions(document); @@ -321,7 +320,7 @@ public abstract class PsiDocumentManagerBase extends PsiDocumentManager implemen for (Processor finishRunnable : finishProcessors) { success = finishRunnable.process(document); if (synchronously) { - assert success; + assert success : finishRunnable + " in " + finishProcessors; } if (!success) { break;