java.lang.NullPointerException

ICEsoft JIRA Issue Tracker | Patrick Corless | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    A client has reported the following stack trace which is generated after creating and moving freeTextAnnotations. I've been able to isolate a reproducible test case. Limit the heap to 64mb, create a freeTextAnnotation on the first page, load 50 or so pages, come back to the first page and the move the free text annotation or try and edit it. java.lang.NullPointerException at org.icepdf.core.pobjects.Resources.getFont(Resources.java:141) at org.icepdf.core.pobjects.annotations.FreeTextAnnotation.resetAppearanceStream(FreeTextAnnotation.java:519) at org.icepdf.core.pobjects.annotations.Annotation.resetAppearanceStream(Annotation.java:1572) at org.icepdf.ri.common.views.annotations.FreeTextAnnotationComponent.resetAppearanceShapes(FreeTextAnnotationComponent.java:259) at org.icepdf.ri.common.views.annotations.FreeTextAnnotationComponent.mouseDragged(FreeTextAnnotationComponent.java:207) at java.awt.Component.processMouseMotionEvent(Unknown Source) at javax.swing.JComponent.processMouseMotionEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

    ICEsoft JIRA Issue Tracker | 4 years ago | Patrick Corless
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.icepdf.core.pobjects.Resources.getFont()
    2. org.icepdf.core
      Annotation.resetAppearanceStream
      1. org.icepdf.core.pobjects.Resources.getFont(Resources.java:141)
      2. org.icepdf.core.pobjects.annotations.FreeTextAnnotation.resetAppearanceStream(FreeTextAnnotation.java:519)
      3. org.icepdf.core.pobjects.annotations.Annotation.resetAppearanceStream(Annotation.java:1572)
      3 frames
    3. org.icepdf.ri
      FreeTextAnnotationComponent.mouseDragged
      1. org.icepdf.ri.common.views.annotations.FreeTextAnnotationComponent.resetAppearanceShapes(FreeTextAnnotationComponent.java:259)
      2. org.icepdf.ri.common.views.annotations.FreeTextAnnotationComponent.mouseDragged(FreeTextAnnotationComponent.java:207)
      2 frames
    4. Java RT
      EventDispatchThread.run
      1. java.awt.Component.processMouseMotionEvent(Unknown Source)
      2. javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
      3. java.awt.Component.processEvent(Unknown Source)
      4. java.awt.Container.processEvent(Unknown Source)
      5. java.awt.Component.dispatchEventImpl(Unknown Source)
      6. java.awt.Container.dispatchEventImpl(Unknown Source)
      7. java.awt.Component.dispatchEvent(Unknown Source)
      8. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      9. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      10. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      11. java.awt.Container.dispatchEventImpl(Unknown Source)
      12. java.awt.Window.dispatchEventImpl(Unknown Source)
      13. java.awt.Component.dispatchEvent(Unknown Source)
      14. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      15. java.awt.EventQueue.access$200(Unknown Source)
      16. java.awt.EventQueue$3.run(Unknown Source)
      17. java.awt.EventQueue$3.run(Unknown Source)
      18. java.security.AccessController.doPrivileged(Native Method)
      19. java.security.ProtectionDomain$1.doIntersectionPrivilege(UnknownSource)
      20. java.security.ProtectionDomain$1.doIntersectionPrivilege(UnknownSource)
      21. java.awt.EventQueue$4.run(Unknown Source)
      22. java.awt.EventQueue$4.run(Unknown Source)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$1.doIntersectionPrivilege(UnknownSource)
      25. java.awt.EventQueue.dispatchEvent(Unknown Source)
      26. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      27. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      28. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      29. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      30. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      31. java.awt.EventDispatchThread.run(Unknown Source)
      31 frames