poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nagaraj_K <Nagara...@satyam.com>
Subject getReference()
Date Mon, 10 Nov 2003 13:27:24 GMT
If a sheet is protected .... getReference() method in HSSFName throws the
follwing error....
cName    org.apache.poi.hssf.usermodel.HSSFName@651060
java.lang.IndexOutOfBoundsException: Index: -1, Size: 1
        at java.util.ArrayList.RangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at
org.apache.poi.hssf.model.Workbook.getSheetName(Workbook.java:449)
        at
org.apache.poi.hssf.model.Workbook.findSheetNameFromExternSheet(Workb
ook.java:1700)
        at
org.apache.poi.hssf.model.Workbook.getSheetReferences(Workbook.java:1
685)
        at
org.apache.poi.hssf.usermodel.HSSFName.getReference(HSSFName.java:126
)
        at GetCellName.getNamedCellUsingIndex(GetCellName.java:41)
        at GetCellName.main(GetCellName.java:79)

Is it a bug or am I not missing something??

Nags
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message