EA-40812 - PIEAE: CompositePsiElement.getContainingFile

This commit is contained in:
peter
2012-11-15 18:51:09 +01:00
parent 4bd24f25fd
commit 6dcdb0f14d
@@ -71,8 +71,10 @@ public class DomJavaUtil {
@Nullable
public static PsiClass findClass(@Nullable String name, @NotNull DomElement element) {
assert element.isValid();
XmlElement xmlElement = element.getXmlElement();
if (xmlElement != null) {
assert xmlElement.isValid();
return findClass(name, xmlElement.getContainingFile(), element.getModule(), element.getResolveScope());
}
return null;