You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Stefano Peruzzi (Jira)" <ji...@apache.org> on 2021/04/01 10:47:00 UTC

[jira] [Updated] (NETBEANS-5528) Nullpointer on CoverageReportTopComponent when running junit tests

     [ https://issues.apache.org/jira/browse/NETBEANS-5528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefano Peruzzi updated NETBEANS-5528:
--------------------------------------
    Description: 
Running test with coverage threw a NullPointerException:

SEVERE [global]
 java.lang.NullPointerException
 at org.netbeans.modules.gsf.codecoverage.CoverageReportTopComponent.updateData(CoverageReportTopComponent.java:367)

Tests are all passed, but coverage is not shown.

Now using mouse right button on the project -> code coverage -> show report

results in a NPE with description: NullPointerException: Cannot invoke "org.netbeans.modules.gsf.codecoverage.api.FileCoverageSummary.getLineCount()" because "summary" is null

 

  was:
Running test with coverage threw a NullPointerException:

SEVERE [global]
java.lang.NullPointerException
 at org.netbeans.modules.gsf.codecoverage.CoverageReportTopComponent.updateData(CoverageReportTopComponent.java:367)

Tests are all passed, but coverage is not shown.

 

    Environment: 
Linux Ubuntu with Gnome Shell.

Bug found with Jdk 11, confirmed upgrading to Jdk 15.

  was:
Linux Ubuntu with Gnome Shell.

Jdk 11


> Nullpointer on CoverageReportTopComponent when running junit tests
> ------------------------------------------------------------------
>
>                 Key: NETBEANS-5528
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5528
>             Project: NetBeans
>          Issue Type: Bug
>          Components: utilities - Test Runner
>    Affects Versions: 12.3
>         Environment: Linux Ubuntu with Gnome Shell.
> Bug found with Jdk 11, confirmed upgrading to Jdk 15.
>            Reporter: Stefano Peruzzi
>            Priority: Critical
>              Labels: coverage, nullpointerexception, test
>         Attachments: messages.log
>
>
> Running test with coverage threw a NullPointerException:
> SEVERE [global]
>  java.lang.NullPointerException
>  at org.netbeans.modules.gsf.codecoverage.CoverageReportTopComponent.updateData(CoverageReportTopComponent.java:367)
> Tests are all passed, but coverage is not shown.
> Now using mouse right button on the project -> code coverage -> show report
> results in a NPE with description: NullPointerException: Cannot invoke "org.netbeans.modules.gsf.codecoverage.api.FileCoverageSummary.getLineCount()" because "summary" is null
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists