From: Javen O'Neal Date: Thu, 24 Nov 2016 21:14:35 +0000 (+0000) Subject: bug 60416: Reduce Hyperlink memory consumption in SXSSF; patch from Dmitry Katsubo X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d2f6e5c24e328ba69d548d870bfdabf03754358a;p=poi.git bug 60416: Reduce Hyperlink memory consumption in SXSSF; patch from Dmitry Katsubo git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1771231 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java index 3a1d85cb03..c070911101 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java @@ -711,7 +711,7 @@ public class SXSSFCell implements Cell { XSSFHyperlink xssfobj = (XSSFHyperlink)link; // Assign to us CellReference ref = new CellReference(getRowIndex(), getColumnIndex()); - xssfobj.getCTHyperlink().setRef( ref.formatAsString() ); + xssfobj.setCellReference( ref.formatAsString() ); // Add to the lists getSheet()._sh.addHyperlink(xssfobj);