ICEpdf
  1. ICEpdf
  2. PDF-943

NullPointerException - TextAnnotation.resetAppearanceStream()

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0_P01
    • Fix Version/s: 6.3
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      6.0.0 P03

      Description

      With the provided PDF file the following error is thrown preventing the PDF from rendering:

      WARNING: Error initiating page: 0
      java.lang.NullPointerException
      at org.icepdf.core.pobjects.annotations.TextAnnotation.resetAppearanceStream(TextAnnotation.java:251)
      at org.icepdf.core.pobjects.annotations.Annotation.resetAppearanceStream(Annotation.java:1783)
      at org.icepdf.core.pobjects.annotations.Annotation.resetNullAppearanceStream(Annotation.java:847)
      at org.icepdf.core.pobjects.annotations.TextAnnotation.init(TextAnnotation.java:152)
      at org.icepdf.core.pobjects.Page.initPageAnnotations(Page.java:299)
      at org.icepdf.core.pobjects.Page.init(Page.java:341)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1167)
      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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46252 Thu Nov 19 14:35:26 MST 2015 patrick.corless PDF-943 reworked invalid bounds to be a little less agressive, new moth just tries to make the annotatoin visible if a dimension is 1 unit.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/Annotation.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46251 Thu Nov 19 14:34:50 MST 2015 patrick.corless PDF-943 reworked invalid bounds to be a little less agressive, new moth just tries to make the annotatoin visible if a dimension is 1 unit.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/Annotation.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46250 Thu Nov 19 13:40:23 MST 2015 patrick.corless PDF-943 touch up texAnnotations AP stream generation to make sure we include a colour and did a check for small and unline valid annotation bounds.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/annotations/Annotation.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46249 Thu Nov 19 13:39:40 MST 2015 patrick.corless PDF-943 touch up texAnnotations AP stream generation to make sure we include a colour and did a check for small and unline valid annotation bounds.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/Annotation.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: