The final step would crash, due to a null pointer exception. It seems the problem lies in a few files being outputted like this by the analyzer:
{
"name": "FileAlterationListener.java",
"packagename": "org/apache/commons/io/monitor",
"sessionName": "testFileCleanerDirectory().[engine:junit-jupiter]/[class:org.apache.commons.io.FileCleaningTrackerTestCase]/[method:testFileCleanerDirectory()]",
"format": "LOOSE",
"firstLine": -1,
"lastLine": -1
},
As a result, when reading this and trying to output the line coverage for each test case it crashes because when converting the json to object the lines attribute was initialized to null.
If sourcefile coverage doesn't contain any lines we shouldn't try to add it to the coverage matrix (it causes a null pointer exception).
I ran tacoco on commons-io using the following commands:
The final step would crash, due to a null pointer exception. It seems the problem lies in a few files being outputted like this by the analyzer: