diff --git a/src/gov/nist/core/NameValueList.java b/src/gov/nist/core/NameValueList.java index 1d11c8ae9..3f992a30f 100755 --- a/src/gov/nist/core/NameValueList.java +++ b/src/gov/nist/core/NameValueList.java @@ -153,10 +153,10 @@ public boolean equals(Object otherObject) { } NameValueList other = (NameValueList) otherObject; - if (this.size() != this.size()) { + if (this.size() != other.size()) { return false; } - Iterator li = this.getNames(); + Iterator li = this.getNames(); while (li.hasNext()) { String key = (String) li.next();