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 2022/02/22 16:44:29 UTC
[maven-dist-tool] branch master updated: avoid NPE, 2nd try
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 2557c76 avoid NPE, 2nd try
2557c76 is described below
commit 2557c7653570f1c5a2d9cb9fd788eca647a347e7
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Tue Feb 22 17:44:20 2022 +0100
avoid NPE, 2nd try
---
.../org/apache/maven/dist/tools/masterjobs/ListMasterJobsReport.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/dist/tools/masterjobs/ListMasterJobsReport.java b/src/main/java/org/apache/maven/dist/tools/masterjobs/ListMasterJobsReport.java
index b942d39..5995566 100644
--- a/src/main/java/org/apache/maven/dist/tools/masterjobs/ListMasterJobsReport.java
+++ b/src/main/java/org/apache/maven/dist/tools/masterjobs/ListMasterJobsReport.java
@@ -186,7 +186,9 @@ public class ListMasterJobsReport extends AbstractMavenReport
{
sink.rawText( " style=\"color:red\"" );
}
- sink.rawText( ">(" + r.getLastBuild().format( DateTimeFormatter.ISO_LOCAL_DATE ) + ")</span> " );
+ sink.rawText( ">(" + ( ( r.getLastBuild() == null ) ? "-" :
+ r.getLastBuild().format( DateTimeFormatter.ISO_LOCAL_DATE ) )
+ + ")</span> " );
sink.link( r.getBuildUrl() );
sink.rawText( r.getRepositoryName() );