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

(-)a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java (-2 / +15 lines)
Lines 67-73 final class XSSFEvaluationSheet implements EvaluationSheet { Link Here
67
            }
67
            }
68
        }
68
        }
69
        
69
        
70
        return _cellCache.get(new CellKey(rowIndex, columnIndex));
70
        final CellKey key = new CellKey(rowIndex, columnIndex);
71
        EvaluationCell evalcell = _cellCache.get(key);
72
        if (evalcell == null) {
73
            XSSFRow row = _xs.getRow(rowIndex);
74
            if (row == null) {
75
                return null;
76
            }
77
            XSSFCell cell = row.getCell(columnIndex);
78
            if (cell == null) {
79
                return null;
80
            }
81
            evalcell = new XSSFEvaluationCell(cell, this);
82
            _cellCache.put(key, evalcell);
83
        }
84
        return evalcell;
71
    }
85
    }
72
    
86
    
73
    private static class CellKey {
87
    private static class CellKey {
74
- 

Return to bug 59958