Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4466861

AccessibleHTMLContext.getLocationOnScreen throws NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • client-libs
    • None

      When SwingSet2 demo is launched on sparc and IA platforms with Ferret Accessibility test suite, I got the NullPointerException when JEditorPane HTML Demo is checked.

      STEP TO REPRODUCE:
      - Launch SwingSet2 demo with Ferret Accessibility test suite.
      - On Ferret window, choose Setting -> Track Mouse option.
      - Go to JEditorPane HTML Demo in SwingSet2 demo and go to any of the text link to do the text accessible checking.
      - The following excption message will be displayed in the console/terminal:
      java.lang.NullPointerException
              at javax.swing.text.html.AccessibleHTML$AccessibleHTMLContext.getLocationOnScreen(AccessibleHTML.java:625)
              at Ferret.updateAccessibleAtMouse(Ferret.java:271)
              at Ferret.timerTimeout(Ferret.java:179)
              at Ferret.actionPerformed(Ferret.java:173)
              at javax.swing.Timer.fireActionPerformed(Timer.java:256)
              at javax.swing.Timer$DoPostEvent.run(Timer.java:190)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:167)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:437)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

      - In the Ferret window, all data under the Interface Accessible Text is 0 and null.

      Note: When I verified the problem with sparc8, there's no problem initially; but when I changed other text link, the same problem happened. I tested the case on sparc 7, 8, 9, IA 9. When I verified the same problem with Ladybird 1.3.1 on IA9, there's no such problem. The data under Interface Accessible Text was accurate in Ferret window and no exceptions were thrown.


            Unassigned Unassigned
            hchensunw Heidi Chen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: