You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2019/04/26 01:17:33 UTC
[maven] branch MNG-6644 created (now fb8edc0)
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a change to branch MNG-6644
in repository https://gitbox.apache.org/repos/asf/maven.git.
at fb8edc0 [MNG-6644] don't fail if no input location tracking available
This branch includes the following new commits:
new fb8edc0 [MNG-6644] don't fail if no input location tracking available
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[maven] 01/01: [MNG-6644] don't fail if no input location tracking
available
Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch MNG-6644
in repository https://gitbox.apache.org/repos/asf/maven.git
commit fb8edc076da0a310995866bfa4567e9b15c47bad
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Fri Apr 26 03:17:00 2019 +0200
[MNG-6644] don't fail if no input location tracking available
this can happen when the POM is not parsed by Maven core from XML
---
.../java/org/apache/maven/model/plugin/DefaultReportingConverter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java b/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java
index 683f494..a3c17ad 100644
--- a/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java
+++ b/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java
@@ -240,7 +240,7 @@ public class DefaultReportingConverter
int n = 0;
for ( String report : reportSet.getReports() )
{
- addDom( reports, "report", report, location.getLocation( n++ ) );
+ addDom( reports, "report", report, ( location == null ) ? null : location.getLocation( n++ ) );
}
dom.addChild( reports );
}