avoid NPE

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@178142 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett 2005-05-24 08:44:34 +00:00
parent ad5a66bf61
commit 743df08416

View File

@ -421,7 +421,12 @@ public class ChangeLog
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");