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
43f7d5bfdc
commit
e9a16f2c5e
@ -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…
Reference in New Issue
Block a user