[
https://issues.apache.org/jira/browse/NETBEANS-5300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477215#comment-17477215
]
Thomas Schapitz commented on NETBEANS-5300:
-------------------------------------------
Tried to reproduce with JDK 17, Netbeans 12.6, and JaCoCo 0.8.7:
Did work as expected for me: \target\site\jacoco\jacoco.xml got properly
generated and picked up: menu entry 'Code Coverage' appeared properly in the
project properties, the sub menu entries worked as intended, coverage related
colouring worked as intended, example below:
!image-2022-01-17-14-35-12-004.png!
[~Irian] do you have still problems with it? Did you try to upgrade Netbeans?
If it is working for you, please close the issue.
> Code Coverage Report no longer works throwing NPE
> -------------------------------------------------
>
> Key: NETBEANS-5300
> URL: https://issues.apache.org/jira/browse/NETBEANS-5300
> Project: NetBeans
> Issue Type: Bug
> Components: maven - codecoverage
> Affects Versions: 12.2, 12.3
> Environment: *Product Version:* Apache NetBeans IDE 12.2
> *Java:* 11; Java HotSpot(TM) 64-Bit Server VM 11+28
> *Runtime:* Java(TM) SE Runtime Environment 11+28
> *System:* Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> Reporter: Luca Mambretti
> Priority: Critical
> Labels: regression
> Attachments: idelog.log, image-2022-01-17-13-45-21-845.png,
> image-2022-01-17-14-35-12-004.png
>
>
> When invoking the Code Coverage report from a Maven project with jacoco
> enabled
> <plugin>
> <groupId>org.jacoco</groupId>
> <artifactId>jacoco-maven-plugin</artifactId>
> <version>0.8.6</version>
> </plugin>
>
> Instead of showing the code coverage report the IDE throws an NPE and does
> nothing.
>
> For convenience the relevant NPE bit full log attached
> java.lang.NullPointerException
> 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.CoverageAction$CoverageItemHandler.actionPerformed(CoverageAction.java:268)
>
>
> This works OK in 12.0 not tested in 12.1
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists