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 2017/11/15 22:48:18 UTC
[maven-dist-tool] branch master updated: protect against NPE on
date not found in index page
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 1a46910 protect against NPE on date not found in index page
1a46910 is described below
commit 1a469101063f5eceaec7f133955dca4a81f930ec
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Wed Nov 15 23:48:16 2017 +0100
protect against NPE on date not found in index page
---
.../java/org/apache/maven/dist/tools/index/DistCheckIndexPageMojo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/dist/tools/index/DistCheckIndexPageMojo.java b/src/main/java/org/apache/maven/dist/tools/index/DistCheckIndexPageMojo.java
index 69c1ed7..6addfd2 100644
--- a/src/main/java/org/apache/maven/dist/tools/index/DistCheckIndexPageMojo.java
+++ b/src/main/java/org/apache/maven/dist/tools/index/DistCheckIndexPageMojo.java
@@ -155,7 +155,7 @@ public class DistCheckIndexPageMojo
if ( displayDate )
{
sink.rawText( cipr.indexDate );
- if ( isDateSimilar( cli.getReleaseDateFromMetadata(), cipr.indexDate ) )
+ if ( ( cipr.indexDate != null ) && isDateSimilar( cli.getReleaseDateFromMetadata(), cipr.indexDate ) )
{
iconSuccess( sink );
}
--
To stop receiving notification emails like this one, please contact
['"commits@maven.apache.org" <co...@maven.apache.org>'].