From 5fa80a8b1b714a20bf8b4ca846827694650aa6b1 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 4 Apr 2012 15:13:23 +0400 Subject: [PATCH] eliminate induced error EA-35236 --- .../com/intellij/psi/impl/source/text/BlockSupportImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/core-impl/src/com/intellij/psi/impl/source/text/BlockSupportImpl.java b/platform/core-impl/src/com/intellij/psi/impl/source/text/BlockSupportImpl.java index 14ce9c6860c1..53419feb35f6 100644 --- a/platform/core-impl/src/com/intellij/psi/impl/source/text/BlockSupportImpl.java +++ b/platform/core-impl/src/com/intellij/psi/impl/source/text/BlockSupportImpl.java @@ -190,9 +190,8 @@ public class BlockSupportImpl extends BlockSupport { final PsiFileImpl newFile = (PsiFileImpl)copy.getPsi(language); if (newFile == null) { - LOG.error("View provider " + viewProvider + " refused to parse text with " + language + + throw new RuntimeException("View provider " + viewProvider + " refused to parse text with " + language + "; base: " + viewProvider.getBaseLanguage() + "; copy: " + copy.getBaseLanguage() + "; fileType: " + fileType); - return null; } newFile.setOriginalFile(fileImpl);