ICEpdf
  1. ICEpdf
  2. PDF-1078

NullPointerException at ShadingType2Pattern

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.3
    • Fix Version/s: 6.2
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      All

      Description

      With the provided PDF file, an NPE is thrown and some of the content in the is not rendered.

      Error stack traces:

      Dec 01, 2016 2:19:36 PM org.icepdf.core.util.content.NContentParser parse
      WARNING: Error parsing content stream.
      java.lang.NullPointerException
      at org.icepdf.core.pobjects.graphics.ShadingType2Pattern.init(ShadingType2Pattern.java:137)
      at org.icepdf.core.util.content.AbstractContentParser.commonFill(AbstractContentParser.java:1895)
      at org.icepdf.core.util.content.AbstractContentParser.consume_f(AbstractContentParser.java:1100)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      at org.icepdf.core.pobjects.Form.init(Form.java:196)
      at org.icepdf.core.util.content.AbstractContentParser.consume_Do(AbstractContentParser.java:562)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      at org.icepdf.core.pobjects.Page.init(Page.java:403)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1180)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

      Dec 01, 2016 2:19:36 PM org.icepdf.core.util.content.NContentParser parse
      WARNING: Error parsing content stream.
      java.lang.NullPointerException
      at org.icepdf.core.pobjects.graphics.ShadingType2Pattern.init(ShadingType2Pattern.java:137)
      at org.icepdf.core.util.content.AbstractContentParser.commonFill(AbstractContentParser.java:1895)
      at org.icepdf.core.util.content.AbstractContentParser.consume_f(AbstractContentParser.java:1100)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      at org.icepdf.core.pobjects.Page.init(Page.java:403)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1180)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: