ICEpdf
  1. ICEpdf
  2. PDF-682

NPE when opening encrypted PDF with IcePDF 5.0.4

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.4
    • Fix Version/s: 5.1.2
    • Component/s: Viewer RI
    • Labels:
      None
    • Environment:
      Windows

      Description

      Stack trace is as follows:

      Nov 20, 2013 12:21:04 PM org.icepdf.core.pobjects.graphics.ImageStreamReference call
      WARNING: Error loading image: 48 0R Image stream= {BitsPerComponent=1, Filter=CCITTFaxDecode, Subtype=Image, Type=XObject, Length=35021, Height=2221, Width=1728, DecodeParms=49 0R, ColorSpace=DeviceGray} 48 0R
      java.lang.NullPointerException
      at org.icepdf.core.pobjects.security.StandardSecurityHandler.getEncryptionInputStream(StandardSecurityHandler.java:213)
      at org.icepdf.core.pobjects.security.SecurityManager.getEncryptionInputStream(SecurityManager.java:238)
      at org.icepdf.core.pobjects.Stream.getDecodedInputStream(Stream.java:230)
      at org.icepdf.core.pobjects.Stream.getDecodedStreamBytes(Stream.java:168)
      at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:370)
      at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:295)
      at org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:70)
      at org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:39)

      I can provide an example PDF which produces this error, but cannot attach it to the JIRA ticket as it contains confidential information.

      Thanks,
      Aleem.

        Issue Links

          Activity

            People

            • Assignee:
              Patrick Corless
              Reporter:
              Aleem Sunderji
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: