Revision 498f30dc
Added by Andreas Müller almost 13 years ago
cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/ExcelUtils.java | ||
---|---|---|
72 | 72 |
} |
73 | 73 |
} |
74 | 74 |
} |
75 |
HashMap<String, String> headers = null; |
|
76 | 75 |
ArrayList<String> columns = new ArrayList<String>(); |
77 | 76 |
row = sheet.getRow(0); |
78 | 77 |
for (int c = 0; c < cols; c++){ |
... | ... | |
86 | 85 |
} |
87 | 86 |
for(int r = 1; r < rows; r++) { |
88 | 87 |
row = sheet.getRow(r); |
89 |
headers = new HashMap<String, String>(); |
|
88 |
HashMap<String, String> headers = new HashMap<String, String>();
|
|
90 | 89 |
boolean notEmpty = false; |
91 |
for (int j = 0; j<row.getRowNum(); j++){
|
|
90 |
for (int j = 0; j<row.getLastCellNum(); j++){
|
|
92 | 91 |
if (row.getCell(j) != null){ |
93 | 92 |
notEmpty = true; |
94 |
break; |
|
95 | 93 |
} |
96 | 94 |
} |
97 | 95 |
if(row != null && notEmpty) { |
Also available in: Unified diff
bugfix for ExcelUtils excel line reader