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 b7ef43e avoid NPE
b7ef43e is described below
commit b7ef43e25554e5b8c3c2257eaf0e16b043a67b02
Author: Hervé Boutemy <[email protected]>
AuthorDate: Tue Feb 22 17:33:54 2022 +0100
avoid NPE
---
.../org/apache/maven/dist/tools/masterjobs/ListMasterJobsReport.java | 3 ++-
1 file changed, 2 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 5060a7d..b942d39 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
@@ -181,7 +181,8 @@ public class ListMasterJobsReport extends
AbstractMavenReport
sink.rawText( r.getIcon() );
sink.rawText( "<span" );
- if ( r.getLastBuild().isBefore(
ZonedDateTime.now().minusMonths( 1 ) ) )
+ if ( ( r.getLastBuild() == null )
+ || r.getLastBuild().isBefore(
ZonedDateTime.now().minusMonths( 1 ) ) )
{
sink.rawText( " style=\"color:red\"" );
}