avoid exception on trying to detect injection inside another injection (WI-9523)

This commit is contained in:
Maxim.Mossienko
2012-01-30 16:04:31 +04:00
parent d33ec05069
commit 7c835859fc
@@ -132,6 +132,8 @@ public class InjectedLanguageUtil {
if (file == null || !file.isPhysical() && file.getOriginalFile() == file) return;
}
if (containingFile.getViewProvider() instanceof InjectedFileViewProvider) return; // no injection inside injection
PsiElement inTree = loadTree(host, containingFile);
if (inTree != host) {
host = inTree;