]> source.dussan.org Git - poi.git/commitdiff
monor perf issue in XSSFCell
authorPJ Fanning <fanningpj@apache.org>
Mon, 14 Feb 2022 20:04:06 +0000 (20:04 +0000)
committerPJ Fanning <fanningpj@apache.org>
Mon, 14 Feb 2022 20:04:06 +0000 (20:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898083 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java

index 8561f74ed105892ddbc46e047fa8b18454bfb6c2..98aa883b84b3d7bd5e34b307eaac54377701d789 100644 (file)
@@ -117,8 +117,9 @@ public final class XSSFCell extends CellBase {
     protected XSSFCell(XSSFRow row, CTCell cell) {
         _cell = cell;
         _row = row;
-        if (cell.getR() != null) {
-            _cellNum = new CellReference(cell.getR()).getCol();
+        String rval = cell.getR();
+        if (rval != null) {
+            _cellNum = new CellReference(rval).getCol();
         } else {
             int prevNum = row.getLastCellNum();
             if(prevNum != -1){