From 98c6f2ba1fcf8a55b7704c0a9389e1b26d5330b4 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Thu, 26 Oct 2017 18:10:09 +0000 Subject: [PATCH] bug 61630: Patch from Daniel to fix XSSFExportToXML IllegalArgumentException: Comparison method violates its general contract! (bug 61630, comment 17, attachment 35468). Found during manual testing. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1813443 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/poi/xssf/extractor/XSSFExportToXml.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java index 140de7215f..c7e211d145 100644 --- a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java +++ b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java @@ -446,7 +446,7 @@ public class XSSFExportToXml implements Comparator{ } if (elementValue.equals(rightWithoutNamespace)) { rightIndexOf = i; - indexMap.put(samePath+"/"+rightWithoutNamespace, leftIndexOf); + indexMap.put(samePath+"/"+rightWithoutNamespace, rightIndexOf); } } i++;