Bug 56527 - Hyperlink methods setFirstRow() setFirstColumn() setLastRow() setLastColumn() not working properly
Summary: Hyperlink methods setFirstRow() setFirstColumn() setLastRow() setLastColumn()...
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.10-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-15 10:54 UTC by Alessandro Guarascio
Modified: 2016-01-22 11:39 UTC (History)
1 user (show)



Attachments
A possible fix (5.07 KB, text/plain)
2014-05-15 10:54 UTC, Alessandro Guarascio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Guarascio 2014-05-15 10:54:28 UTC
Created attachment 31625 [details]
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);
Comment 1 Nick Burch 2014-07-31 14:55:34 UTC
Thanks for the test, fixed in r1614914.