maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r554276 - /maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java
Date Sat, 07 Jul 2007 23:13:29 GMT
Author: dennisl
Date: Sat Jul  7 16:13:28 2007
New Revision: 554276

URL: http://svn.apache.org/viewvc?view=rev&rev=554276
Log:
[MCHANGES-70] NPE if the version attribute is not set properly in the changes.xml file

Modified:
    maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java?view=diff&rev=554276&r1=554275&r2=554276
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java
(original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java
Sat Jul  7 16:13:28 2007
@@ -372,7 +372,7 @@
         {
             release = (Release) releases.get( i );
 
-            if ( release.getVersion().equals( pomVersion ) )
+            if ( release.getVersion() != null && release.getVersion().equals( pomVersion
) )
             {
                 isFound = true;
                 return release;



Mime
View raw message