maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject [maven-dist-tool] branch master updated: protect against NPE on date not found in index page
Date Wed, 15 Nov 2017 22:48:18 GMT
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 <hboutemy@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" <commits@maven.apache.org>'].

Mime
View raw message