diff --git a/src/main/java/com/alibaba/excel/EasyExcelFactory.java b/src/main/java/com/alibaba/excel/EasyExcelFactory.java
index 16a3d3b..4d73219 100644
--- a/src/main/java/com/alibaba/excel/EasyExcelFactory.java
+++ b/src/main/java/com/alibaba/excel/EasyExcelFactory.java
@@ -6,6 +6,8 @@ import java.io.OutputStream;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
+import java.util.TreeMap;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
@@ -35,7 +37,7 @@ import com.alibaba.excel.write.builder.ExcelWriterTableBuilder;
*
Sample2
*
*
- *
+ *
* @author jipengfei
*/
public class EasyExcelFactory {
@@ -62,7 +64,15 @@ public class EasyExcelFactory {
@Override
public void doAfterAllAnalysed(AnalysisContext context) {}
}, false).read(sheet);
- return rows;
+ if (rows.size() == 0 || !(rows.get(0) instanceof Map)) {
+ return rows;
+ }
+ List