Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5823

Code Coverage Report Button creates Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 12.4
    • 12.5
    • php - PHPUnit
    • None
    • Tested on Arch Linux with:

      PHP 8.0.8, Xdebug v3.0.4, PHPUnit 9.5.6

    Description

      The Code Coverage for PHP seems to be broken.
      Clicking the "Report..." button in the code Coverage Editor bar raises various exceptions, all relating to the coverage log file not being found / readable even if it exists.

      Steps to reproduce:

      • setup PHPunit
      • Activate CodeCoverage Editor Bar
      • click "Report..." button

       

      Exception:

      SEVERE [global]
      java.lang.NullPointerException: Cannot invoke "org.netbeans.modules.gsf.codecoverage.api.FileCoverageSummary.getLineCount()" because "summary" is null
      	at org.netbeans.modules.gsf.codecoverage.CoverageReportTopComponent.<init>(CoverageReportTopComponent.java:171)
      	at org.netbeans.modules.gsf.codecoverage.CoverageManagerImpl.showReport(CoverageManagerImpl.java:276)
      	at org.netbeans.modules.gsf.codecoverage.CoverageSideBar.report(CoverageSideBar.java:304)
      	at org.netbeans.modules.gsf.codecoverage.CoverageSideBar.access$300(CoverageSideBar.java:64)
      	at org.netbeans.modules.gsf.codecoverage.CoverageSideBar$5.actionPerformed(CoverageSideBar.java:241)
      	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
      	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
      	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
      	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
      	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
      	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6617)
      	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
      	at java.desktop/java.awt.Component.processEvent(Component.java:6382)
      	at java.desktop/java.awt.Container.processEvent(Container.java:2264)
      	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4993)
      	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2322)
      	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4825)
      	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4934)
      	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4563)
      	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4504)
      	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2308)
      	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
      	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4825)
      	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
      	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
      	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
      	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
      [catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      SEVERE [null]: Last record repeated again.
      

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              NikolaiNeff Nikolai Neff
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: