poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50795] New: Moving cell comment crashes Excel file
Date Wed, 16 Feb 2011 14:30:06 GMT

           Summary: Moving cell comment crashes Excel file
           Product: POI
           Version: 3.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: andrei.astrouski@gmail.com

Created an attachment (id=26668)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26668)

1. Create Excel file.
2. Add cell comment.
3. Process with POI. Get our created cell comment and try to set to another
  XSSFCell cell = row.getCell(0);
  XSSFComment comment = cell.getCellComment();
  XSSFCell cellWithoutComment = row.getCell(1);
4. Try to save changes
  FileOutputStream out = new FileOutputStream(testFilePath);

Actual result: NPE appears, file size = 0 bytes
Expected: comment moved successfull (in 3.6 it works)

See attachments to test

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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

View raw message