You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2014/05/15 12:54:28 UTC

[Bug 56527] New: Hyperlink methods setFirstRow() setFirstColumn() setLastRow() setLastColumn() not working properly

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: dev@poi.apache.org
          Reporter: guarale@hotmail.com

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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 56527] Hyperlink methods setFirstRow() setFirstColumn() setLastRow() setLastColumn() not working properly

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56527

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
                 OS|                            |All

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Thanks for the test, fixed in r1614914.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org