PR: MPCHANGELOG-83

NPE if developer's id is missing.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@386392 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl 2006-03-16 17:27:23 +00:00
parent f936eed0a5
commit 4f845d19da
2 changed files with 10 additions and 1 deletions

View File

@ -568,7 +568,15 @@ public class ChangeLog
for ( Iterator i = getDevelopers().iterator(); i.hasNext(); )
{
developer = (Developer) i.next();
userList.put( developer.getId(), developer.getName() );
if ( developer.getId() != null && developer.getName() != null )
{
userList.put( developer.getId(), developer.getName() );
}
else
{
LOG.warn( "WARNING: Some developer entries don't have an id or a name." );
LOG.warn( " Your changelog- and developer-activity reports will not be complete!" );
}
}
return userList;

View File

@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.9.1-SNAPSHOT" date="in SVN">
<action dev="ltheussl" type="fix" issue="MPCHANGELOG-83">NullPointerException if developer's id is missing.</action>
<action dev="ltheussl" type="fix" issue="MPCHANGELOG-75">Replace netbeans's cvslib-3.6 by cvsclient-20051129.</action>
</release>
<release version="1.9" date="2006-01-29">