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 <[email protected]>
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 );
         }

Reply via email to