[ 
https://issues.apache.org/jira/browse/CAMEL-21239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17883731#comment-17883731
 ] 

Claus Ibsen commented on CAMEL-21239:
-------------------------------------

Okay I have fixed so all the data is now in the report

 
{code:java}
[INFO] --- camel-report:4.9.0-SNAPSHOT:route-coverage (default-cli) @ 
camel-example-spring-boot ---
[INFO] Discovered 1 routes
[INFO] Route coverage summary:Class:    sample.camel.MyCamelRouter
Route:    hello  Line #       Count    Route
  ------       -----    -----
      38           1    from
      40           1      bean
      42           1      toCoverage: 3 out of 3 (100.0% / threshold 100.0%)
Status: Success
[INFO]
[INFO] Overall coverage summary:Coverage: 3 out of 3 (100.0% / threshold 0.0%)
Status: Success {code}

> camel-report-maven-plugin - NPE if route does not have id
> ---------------------------------------------------------
>
>                 Key: CAMEL-21239
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21239
>             Project: Camel
>          Issue Type: Bug
>          Components: tooling
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.4.4, 4.8.1, 4.9.0
>
>
> Caused by: java.lang.NullPointerException: Cannot invoke 
> "org.w3c.dom.Node.getNodeValue()" because the return value of 
> "org.w3c.dom.NamedNodeMap.getNamedItem(String)" is null
>     at 
> org.apache.camel.parser.helper.RouteCoverageHelper.parseDumpRouteCoverageByRouteId
>  (RouteCoverageHelper.java:70)
>     at org.apache.camel.maven.RouteCoverageMojo.grabDumpData 
> (RouteCoverageMojo.java:263)
>     at org.apache.camel.maven.RouteCoverageMojo.execute 
> (RouteCoverageMojo.java:228)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:126)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to