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

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.1.2 [ 11872 ]
        Patrick Corless made changes -
        Fix Version/s 5.2 [ 10970 ]
        Fix Version/s 5.1.2 [ 11872 ]
        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.
        Patrick Corless made changes -
        Component/s Viewer RI [ 10027 ]
        Patrick Corless made changes -
        Fix Version/s 5.2.1 [ 12071 ]
        Fix Version/s 5.2 [ 10970 ]
        Patrick Corless made changes -
        Fix Version/s 6.1 [ 12070 ]
        Fix Version/s 6.0.1 [ 12071 ]
        Patrick Corless made changes -
        Fix Version/s 6.2 [ 12974 ]
        Fix Version/s 6.1 [ 12070 ]

          People

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

            Dates

            • Created:
              Updated: