ICEpdf
  1. ICEpdf
  2. PDF-1014

NullPointerException thrown at MarkupAnnotationComponent.mouseClicked

    Details

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

      Description

      A NullPointerException is thrown when trying to re-open a collapsed annotation with the provided PDF file.

      To reproduce the issue:
       - Add an annotation to the page.
       - Double click to open the popup
       - Minimize the popup.
       - Double click the annotation, the NPE is thrown and can't get the popup open again.

      Stack trace:
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      at org.icepdf.ri.common.views.annotations.MarkupAnnotationComponent.mouseClicked(MarkupAnnotationComponent.java:92)
      at java.awt.Component.processMouseEvent(Component.java:6519)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
      at java.awt.Component.processEvent(Component.java:6281)
      at java.awt.Container.processEvent(Container.java:2229)
      at java.awt.Component.dispatchEventImpl(Component.java:4872)
      at java.awt.Container.dispatchEventImpl(Container.java:2287)
      at java.awt.Component.dispatchEvent(Component.java:4698)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4501)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
      at java.awt.Container.dispatchEventImpl(Container.java:2273)
      at java.awt.Window.dispatchEventImpl(Window.java:2719)
      at java.awt.Component.dispatchEvent(Component.java:4698)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:694)
      at java.awt.EventQueue$3.run(EventQueue.java:692)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:708)
      at java.awt.EventQueue$4.run(EventQueue.java:706)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49486 Tue Nov 08 10:28:17 MST 2016 patrick.corless PDF-1014 added check for direct referenced annotations when find popup references for update and delete.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/annotations/MarkupAnnotationComponent.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Page.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/MyAnnotationCallback.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49130 Mon Aug 29 20:31:22 MDT 2016 patrick.corless PDF-1014 added check for direct referenced annotations when find popup references for update and delete.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/Page.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49129 Mon Aug 29 19:49:20 MDT 2016 patrick.corless PDF-1014 added check for direct referenced annotations when find popup references for update and delete.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/Page.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/viewer/src/org/icepdf/ri/common/MyAnnotationCallback.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49128 Mon Aug 29 19:37:41 MDT 2016 patrick.corless PDF-1014 added check for direct referenced annotations when find popup references.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/viewer/src/org/icepdf/ri/common/views/annotations/MarkupAnnotationComponent.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: