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

             Bug #: 52425
           Summary: Error adding Comments into cloned Sheets
           Product: POI
           Version: 3.8-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 28121
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28121
Testprogram

Hi,

im facing a problem to add comments in a cloned sheet.

Adding comments to a new created sheet is no problem, but if I want to add
comments to a cloned sheet a get the following NullPointerException.

Exception in thread "main" java.lang.NullPointerException
    at
org.apache.poi.xssf.usermodel.XSSFDrawing.createCellComment(XSSFDrawing.java:294)
    at
org.apache.poi.xssf.usermodel.XSSFDrawing.createCellComment(XSSFDrawing.java:50)
    at src.CloneBug.addComments(CloneBug.java:50)
    at src.CloneBug.main(CloneBug.java:32)

The command:
XSSFVMLDrawing vml = sheet.getVMLDrawing(true);
in line 293 is returning a null-Object.

Furthermore this Exception is occuring only after the second comment. The first
comment is not running into this exception. But after opening the document
after adding the first comment, the comment is not there. Cell-Value is set but
not comment is present.

File to reproduce the exception is attached.

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to