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 3a1d85cb0..c07091110 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);