mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
fix NPE
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1761844 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5b6d4546c2
commit
c6f365f4e4
@ -319,6 +319,7 @@ public class ColumnHelper {
|
||||
}
|
||||
|
||||
public int getIndexOfColumn(CTCols cols, CTCol searchCol) {
|
||||
if (cols == null || searchCol == null) return -1;
|
||||
int i = 0;
|
||||
for (CTCol col : cols.getColArray()) {
|
||||
if (col.getMin() == searchCol.getMin() && col.getMax() == searchCol.getMax()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user