From ad39d8ea4212c486131283375774240820c01620 Mon Sep 17 00:00:00 2001 From: HANA Philipp Date: Thu, 22 Feb 2018 10:46:03 +0100 Subject: [PATCH] fix NameValueList equals, in case this is an empty NameValueList --- src/gov/nist/core/NameValueList.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();