From 565ec230dcf8b9a12e60be7a3f8649bfead371f0 Mon Sep 17 00:00:00 2001 From: Sascha Weinreuter Date: Wed, 16 Nov 2011 10:19:30 +0100 Subject: [PATCH] EA-31689 - CCE: XsltSupport$XsltSupportProvider.compute --- .../src/org/intellij/lang/xpath/xslt/XsltSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/XsltSupport.java b/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/XsltSupport.java index 93f730e95917..65b3f32c1fb5 100644 --- a/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/XsltSupport.java +++ b/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/XsltSupport.java @@ -342,7 +342,7 @@ public class XsltSupport { public static final ParameterizedCachedValueProvider INSTANCE = new XsltSupportProvider(); public CachedValueProvider.Result compute(PsiFile psiFile) { - if (psiFile instanceof PsiFileEx) { + if (psiFile instanceof PsiFileEx && psiFile instanceof XmlFile) { if (((PsiFileEx)psiFile).isContentsLoaded()) { final XmlDocument doc = ((XmlFile)psiFile).getDocument(); if (doc != null) {