https://bz.apache.org/bugzilla/show_bug.cgi?id=58630

            Bug ID: 58630
           Summary: Signing failed after deletion of first sheet
           Product: POI
           Version: 3.13-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SS Common
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 33285
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33285&action=edit
Test class and sample files

Hello,

we have an Excel workbook (XLSX) which we would like to read and modify.
In the end we would like to sign it.

Unfortunately we get an NullPointerException while signing, when we have
deleted the first sheet before:
java.lang.NullPointerException
    at
org.apache.poi.poifs.crypt.dsig.facets.OOXMLSignatureFacet.addManifestReferences(OOXMLSignatureFacet.java:164)
    at
org.apache.poi.poifs.crypt.dsig.facets.OOXMLSignatureFacet.addManifestObject(OOXMLSignatureFacet.java:100)
    at
org.apache.poi.poifs.crypt.dsig.facets.OOXMLSignatureFacet.preSign(OOXMLSignatureFacet.java:89)
    at
org.apache.poi.poifs.crypt.dsig.SignatureInfo.preSign(SignatureInfo.java:472)
    at
org.apache.poi.poifs.crypt.dsig.SignatureInfo.confirmSignature(SignatureInfo.java:315)

Please note that this problem does not occur when we delete another sheet
instead.

Please find attached a test class and sample files.

Thanks and best regards
Constantin

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