Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7163432

Invalid reporting URL that starts with xml:// generate NPE

    XMLWordPrintable

Details

    • b35
    • generic
    • generic
    • Verified

    Description

      Reporting URL that starts with xml:// generate exception in Command-Line.
      How to reproduce:
      1. Go to JavaTest Harness Preferences -> Test Manager -> Reporting
      2. Enter bug prefix URL that starts with xml:// and invalid (for example, xml://windows/javatest?=)
      3. Run test suite with KFL. Create Report. HTML report should contain links with bug prefix URL.
      4. Open report and click on the link. The following exception will be thrown:
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
              at com.sun.javatest.exec.MultiFormatPane$Listener.processGeneralLink(Mul
      tiFormatPane.java:516)
              at com.sun.javatest.exec.MultiFormatPane$Listener.hyperlinkUpdate(MultiF
      ormatPane.java:472)
              at javax.swing.JEditorPane.fireHyperlinkUpdate(JEditorPane.java:345)
              at javax.swing.text.html.HTMLEditorKit$LinkController.activateLink(HTMLE
      ditorKit.java:877)
              at javax.swing.text.html.HTMLEditorKit$LinkController.mouseClicked(HTMLE
      ditorKit.java:676)
              at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:27
      0)
              at java.awt.Component.processMouseEvent(Component.java:6513)
              at javax.swing.JComponent.processMouseEvent(JComponent.java:3323)
              at java.awt.Component.processEvent(Component.java:6275)
              at java.awt.Container.processEvent(Container.java:2229)
              at java.awt.Component.dispatchEventImpl(Component.java:4866)
              at java.awt.Container.dispatchEventImpl(Container.java:2287)
              at java.awt.Component.dispatchEvent(Component.java:4691)
              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:4691)
              at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
              at java.awt.EventQueue.access$000(EventQueue.java:102)
              at java.awt.EventQueue$3.run(EventQueue.java:662)
              at java.awt.EventQueue$3.run(EventQueue.java:660)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
      main.java:75)
              at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
      main.java:86)
              at java.awt.EventQueue$4.run(EventQueue.java:676)
              at java.awt.EventQueue$4.run(EventQueue.java:674)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
      main.java:75)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
      ad.java:216)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
      java:135)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.java:123)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:119)

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:111)

              at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

      Attachments

        Activity

          People

            bkurotsu Brian Kurotsuchi (Inactive)
            mkolmako Maxim Kolmakov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: