https://issues.apache.org/bugzilla/show_bug.cgi?id=57034

            Bug ID: 57034
           Summary: NullPointerException in autoSizeColumn
           Product: POI
           Version: 3.11-dev
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SXSSF
          Assignee: [email protected]
          Reporter: [email protected]

Workbook workbook = new SXSSFWorkbook();
        Sheet sheet = workbook.createSheet();

        Row row = sheet.createRow(1);
        Cell cell = row.createCell(0);
        String x = null;
        cell.setCellValue(x);
        sheet.autoSizeColumn(0, true);

I tested HSSFWorkbook, XSSFWorkbook, SXSSFWorkbook, only SXSSFWorkbook throws
NullPointerException

due to different result to null String value

cell.getRichStringCellValue().getString() return null

-- 
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]

Reply via email to