From 4c4599cce60a73b55ea16c6bb612ce16841f9583 Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Wed, 23 Oct 2019 18:51:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=A0=B9=E6=8D=AE=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC=E5=87=BA=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/alibaba/excel/metadata/property/ExcelHeadProperty.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/alibaba/excel/metadata/property/ExcelHeadProperty.java b/src/main/java/com/alibaba/excel/metadata/property/ExcelHeadProperty.java index eed5699e..9d6a5442 100644 --- a/src/main/java/com/alibaba/excel/metadata/property/ExcelHeadProperty.java +++ b/src/main/java/com/alibaba/excel/metadata/property/ExcelHeadProperty.java @@ -168,8 +168,9 @@ public class ExcelHeadProperty { int index = 0; for (Field field : defaultFieldList) { while (customFiledMap.containsKey(index)) { + Field customFiled = customFiledMap.get(index); customFiledMap.remove(index); - if (!initOneColumnProperty(holder, index, customFiledMap.get(index), Boolean.TRUE)) { + if (!initOneColumnProperty(holder, index, customFiled, Boolean.TRUE)) { index++; } }