You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2006/05/14 04:21:02 UTC
svn commit: r406200 - in
/maven/plugins/trunk/maven-project-info-reports-plugin: pom.xml
src/main/java/org/apache/maven/report/projectinfo/ReportResolutionListener.java
Author: brett
Date: Sat May 13 19:21:02 2006
New Revision: 406200
URL: http://svn.apache.org/viewcvs?rev=406200&view=rev
Log:
fix null pointer exception
Modified:
maven/plugins/trunk/maven-project-info-reports-plugin/pom.xml
maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ReportResolutionListener.java
Modified: maven/plugins/trunk/maven-project-info-reports-plugin/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-project-info-reports-plugin/pom.xml?rev=406200&r1=406199&r2=406200&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/pom.xml Sat May 13 19:21:02 2006
@@ -24,7 +24,7 @@
<artifactId>maven-project-info-reports-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Maven Project Info Reports Plugin</name>
- <version>2.0-beta-4-SNAPSHOT</version>
+ <version>2.0-SNAPSHOT</version>
<inceptionYear>2005</inceptionYear>
<contributors>
<contributor>
Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ReportResolutionListener.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ReportResolutionListener.java?rev=406200&r1=406199&r2=406200&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ReportResolutionListener.java (original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ReportResolutionListener.java Sat May 13 19:21:02 2006
@@ -116,13 +116,16 @@
{
Node node = (Node) artifacts.get( artifact.getDependencyConflictId() );
- if ( replacement.getVersion() != null )
+ if ( node != null )
{
- node.artifact.setVersion( replacement.getVersion() );
- }
- if ( replacement.getScope() != null )
- {
- node.artifact.setScope( replacement.getScope() );
+ if ( replacement.getVersion() != null )
+ {
+ node.artifact.setVersion( replacement.getVersion() );
+ }
+ if ( replacement.getScope() != null )
+ {
+ node.artifact.setScope( replacement.getScope() );
+ }
}
}