From a8cfc8b18fc7dcf4e5a38c7da9c5829485de7031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 1 Apr 2014 08:11:47 +0200 Subject: [PATCH] DomUtil.checkHasXml: use hasXml() instead of getXmlElement() --- xml/dom-openapi/src/com/intellij/util/xml/DomUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/dom-openapi/src/com/intellij/util/xml/DomUtil.java b/xml/dom-openapi/src/com/intellij/util/xml/DomUtil.java index 08430d5c2367..4b3e6ab73495 100644 --- a/xml/dom-openapi/src/com/intellij/util/xml/DomUtil.java +++ b/xml/dom-openapi/src/com/intellij/util/xml/DomUtil.java @@ -273,7 +273,7 @@ public class DomUtil { } private static boolean checkHasXml(XmlElement psi, DomElement dom) { - if (dom != null && dom.getXmlElement() == null) { + if (dom != null && !hasXml(dom)) { LOG.error("No xml for dom " + dom + "; attr=" + psi + ", physical=" + psi.isPhysical()); return false; }