ICEpdf
  1. ICEpdf
  2. PDF-855

Null pointer on delete annotation.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 5.0.4
    • Fix Version/s: 6.4
    • Component/s: Core/Parsing, Viewer RI
    • Labels:
      None
    • Environment:
      any

      Description

      When an annotation is removed from a page we do a quick check to see if our font /ice1 is currently part of the resources dictionary of the page. If it is we remove it. The font is inserted when an free text annotation is added to the page.

      The forum user has noticed that at null pointer can occur in a number of different cases. It is also possible that we will remove the font even if there is another free text annotation on the page that hasn't been deleted yet. The core will recover on render but this still isn't the best case.

      Further work work is needed to correctly remove a free-text annotation's resources on deletion.

        Activity

        Hide
        Patrick Corless added a comment -

        I've checked in a simple fix to avoid the null pointer but I won't close this issue as of yet as there still the issue of deleting a font that is shared among other annotations on the page.

        Show
        Patrick Corless added a comment - I've checked in a simple fix to avoid the null pointer but I won't close this issue as of yet as there still the issue of deleting a font that is shared among other annotations on the page.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: