You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by br...@apache.org on 2005/05/24 10:44:35 UTC

svn commit: r178142 - /maven/maven-1/plugins/trunk/changelog/src/main/org/apache/maven/changelog/ChangeLog.java

Author: brett
Date: Tue May 24 01:44:34 2005
New Revision: 178142

URL: http://svn.apache.org/viewcvs?rev=178142&view=rev
Log:
avoid NPE

Modified:
    maven/maven-1/plugins/trunk/changelog/src/main/org/apache/maven/changelog/ChangeLog.java

Modified: maven/maven-1/plugins/trunk/changelog/src/main/org/apache/maven/changelog/ChangeLog.java
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/changelog/src/main/org/apache/maven/changelog/ChangeLog.java?rev=178142&r1=178141&r2=178142&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/changelog/src/main/org/apache/maven/changelog/ChangeLog.java (original)
+++ maven/maven-1/plugins/trunk/changelog/src/main/org/apache/maven/changelog/ChangeLog.java Tue May 24 01:44:34 2005
@@ -420,8 +420,13 @@
                     generator.cleanup();
                     parser.cleanup();
                 }
-                
-                sets.add(new ChangeLogSet(entries, logStart, logEnd));
+
+                if ( entries == null )
+                {
+                    entries = Collections.EMPTY_LIST;
+                }
+
+                    sets.add(new ChangeLogSet(entries, logStart, logEnd));
                 if (LOG.isInfoEnabled()) {
                     LOG.info("ChangeSet between " + logStart + " and " + logEnd + ": "
                             + entries.size() + " entries");



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org