Bug 51846 - XSSFCell.getStringCellValue does not honor interface description. Can return null, while not specified
Summary: XSSFCell.getStringCellValue does not honor interface description. Can return ...
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: unspecified
Hardware: PC Mac OS X 10.4
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 12:42 UTC by umerckx
Modified: 2011-09-19 13:29 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description umerckx 2011-09-19 12:42:16 UTC
The description states that on an blank cell an empty string will be returned.
But null is returned.
Comment 1 Nick Burch 2011-09-19 12:44:29 UTC
Do you have a sample file that shows the problem?
Comment 2 umerckx 2011-09-19 13:29:37 UTC
Error in own surrounding code. 
Though the code suggests a null can be returned:
public String getStringCellValue() {
        XSSFRichTextString str = getRichStringCellValue();
        return str == null ? null : str.getString();
    }