ICEpdf
  1. ICEpdf
  2. PDF-706

Page pagePaint listeners not being removed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.4
    • Fix Version/s: 5.0.5
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any
    • Salesforce Case Reference:

      Description

      A supported customer came across this bug in our code when doing some tracing. The code reads as

          public void removePaintPageListener(PaintPageListener listener) {
              // remove a listener if it is already registered
              synchronized (paintPageListeners) {
                  if (paintPageListeners.contains(listener)) {
                      paintPageListeners.add(listener);
                  }

              }
          }

      The typo/bug is patinPageListeners.add() instead of remove.

        Activity

        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Hide
        Judy Guglielmin added a comment -

        from user:- no specific file to cause this jira but the following comment:-

        Unfortunately we don't have a specific pdf for this issue.
        The problem happened when pdf files were opened and closed
        fast.

        Show
        Judy Guglielmin added a comment - from user:- no specific file to cause this jira but the following comment:- Unfortunately we don't have a specific pdf for this issue. The problem happened when pdf files were opened and closed fast.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: