eliminate induced error EA-35236

This commit is contained in:
Alexey Kudravtsev
2012-04-05 13:18:41 +04:00
parent a71bc8f967
commit 5fa80a8b1b
@@ -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);