View | Details | Raw Unified | Return to bug 56525
Collapse All | Expand All

(-)src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java (-1 / +4 lines)
Lines 959-965 Link Here
959
    @Override
959
    @Override
960
    public CellStyle getColumnStyle(int column) {
960
    public CellStyle getColumnStyle(int column) {
961
        int idx = columnHelper.getColDefaultStyle(column);
961
        int idx = columnHelper.getColDefaultStyle(column);
962
        return getWorkbook().getCellStyleAt((short)(idx == -1 ? 0 : idx));
962
        if (idx == -1) {
963
            return null;
964
        }
965
        return getWorkbook().getCellStyleAt(idx);
963
    }
966
    }
964
967
965
    /**
968
    /**

Return to bug 56525