This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dist-tool.git
The following commit(s) were added to refs/heads/master by this push:
new a4ed9aa fix Jira link
a4ed9aa is described below
commit a4ed9aa97d8fb08d1e5da563ce95ab7c2a32b101
Author: Hervé Boutemy <[email protected]>
AuthorDate: Sat Feb 13 22:21:41 2021 +0100
fix Jira link
---
.../org/apache/maven/dist/tools/branches/ListBranchesMojo.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git
a/src/main/java/org/apache/maven/dist/tools/branches/ListBranchesMojo.java
b/src/main/java/org/apache/maven/dist/tools/branches/ListBranchesMojo.java
index a151253..5659a52 100644
--- a/src/main/java/org/apache/maven/dist/tools/branches/ListBranchesMojo.java
+++ b/src/main/java/org/apache/maven/dist/tools/branches/ListBranchesMojo.java
@@ -342,9 +342,13 @@ public class ListBranchesMojo extends AbstractMavenReport
// Jira
sink.tableCell();
- sink.link( JIRA_BASE_URL + r.getRepositoryName() );
- sink.rawText( JIRAPROJECTS.get( r.getRepositoryName() ) );
- sink.link_();
+ String jiraId = JIRAPROJECTS.get( r.getRepositoryName() );
+ if ( jiraId != null )
+ {
+ sink.link( JIRA_BASE_URL + jiraId );
+ sink.rawText( jiraId );
+ sink.link_();
+ }
sink.tableCell_();
// Jenkins job