diff --git a/xml/dom-openapi/src/com/intellij/util/xml/XmlName.java b/xml/dom-openapi/src/com/intellij/util/xml/XmlName.java index ec528256e7fd..b730d05b5b38 100644 --- a/xml/dom-openapi/src/com/intellij/util/xml/XmlName.java +++ b/xml/dom-openapi/src/com/intellij/util/xml/XmlName.java @@ -57,11 +57,7 @@ public class XmlName implements Comparable { final XmlName xmlName = (XmlName)o; if (!myLocalName.equals(xmlName.myLocalName)) return false; - if (Comparing.equal(myNamespaceKey, xmlName.myNamespaceKey)) return true; - - if (myNamespaceKey == null) return false; - - return myNamespaceKey.equals(xmlName.myNamespaceKey); + return Comparing.equal(myNamespaceKey, xmlName.myNamespaceKey); } public int hashCode() {