return true;
}
} else {
- if (loc.getLocIdentifier().equals(getLocIdentifier())) {
+ if (loc.getLocDescriptor() != null && getLocDescriptor() != null
+ && loc.getLocDescriptor().equals(getLocDescriptor())) {
+ return true;
+ } else if (loc.getLocIdentifier().equals(getLocIdentifier())) {
return true;
}
}
if (loc != null) {
hash += loc.hashCode();
}
+ if (locDesc != null) {
+ hash += locDesc.hashCode();
+ }
return hash;
}