https://issues.apache.org/bugzilla/show_bug.cgi?id=56527
Bug ID: 56527
Summary: Hyperlink methods setFirstRow() setFirstColumn()
setLastRow() setLastColumn() not working properly
Product: POI
Version: 3.10
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Created attachment 31625
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31625&action=edit
A possible fix
Methods setFirstRow() setFirstColumn() setLastRow() setLastColumn() of class
XSSFHyperlink do not work properly. In particular:
1) setFirstRow() setFirstColumn() throws NullPointerException
2) setLastRow() setLastColumn() overwrite first row and column instead of
setting the other interval boundary.
E.g. the following code throws NullPointerException
XSSFCreationHelper creationHelper = myWorkbook.getCreationHelper();
XSSFHyperlink hyperlink = creationHelper.createHyperlink(Hyperlink.LINK_URL);
mySheet.addHyperlink(hyperlink);
hyperlink.setAddress("http://myurl");
hyperlink.setFirstRow(1);
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]