continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r447887 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Date Tue, 19 Sep 2006 15:44:54 GMT
Author: evenisse
Date: Tue Sep 19 08:44:53 2006
New Revision: 447887

URL: http://svn.apache.org/viewvc?view=rev&rev=447887
Log:
[CONTINUUM-780] Fix NPE when the date of the changeset is null.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java?view=diff&rev=447887&r1=447886&r2=447887
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Tue Sep 19 08:44:53 2006
@@ -411,7 +411,10 @@
 
                 change.setComment( scmChangeSet.getComment() );
 
-                change.setDate( scmChangeSet.getDate().getTime() );
+                if ( scmChangeSet.getDate() != null )
+                {
+                    change.setDate( scmChangeSet.getDate().getTime() );
+                }
 
                 if ( scmChangeSet.getFiles() != null )
                 {



Mime
View raw message