File tree Expand file tree Collapse file tree
src/main/java/uk/co/reecedunn/intellij/plugin/xquery/psi/impl/xquery Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ public boolean equals(Object other) {
5454 PsiElement lhsLocalName = getLocalName ();
5555 PsiElement rhsLocalName = rhs .getLocalName ();
5656 if ((lhsLocalName == null && rhsLocalName == null ) ||
57- (lhsLocalName != null && lhsLocalName .getText ().equals (rhsLocalName .getText ()))) {
57+ (lhsLocalName != null && rhsLocalName != null && lhsLocalName .getText ().equals (rhsLocalName .getText ()))) {
5858 PsiElement lhsPrefix = getPrefix ();
5959 PsiElement rhsPrefix = rhs .getPrefix ();
6060 return (lhsPrefix == null && rhsPrefix == null ) ||
61- (lhsPrefix != null && lhsPrefix .getText ().equals (rhsPrefix .getText ()));
61+ (lhsPrefix != null && rhsPrefix != null && lhsPrefix .getText ().equals (rhsPrefix .getText ()));
6262 }
6363 return false ;
6464 }
You can’t perform that action at this time.
0 commit comments