maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r687827 - /maven/components/branches/sisbell-maven-2.1-profile/maven-project/src/main/java/org/apache/maven/project/MavenProject.java
Date Thu, 21 Aug 2008 18:40:45 GMT
Author: sisbell
Date: Thu Aug 21 11:40:45 2008
New Revision: 687827

URL: http://svn.apache.org/viewvc?rev=687827&view=rev
Log:
Fixed NPE on cloning of model.

Modified:
    maven/components/branches/sisbell-maven-2.1-profile/maven-project/src/main/java/org/apache/maven/project/MavenProject.java

Modified: maven/components/branches/sisbell-maven-2.1-profile/maven-project/src/main/java/org/apache/maven/project/MavenProject.java
URL: http://svn.apache.org/viewvc/maven/components/branches/sisbell-maven-2.1-profile/maven-project/src/main/java/org/apache/maven/project/MavenProject.java?rev=687827&r1=687826&r2=687827&view=diff
==============================================================================
--- maven/components/branches/sisbell-maven-2.1-profile/maven-project/src/main/java/org/apache/maven/project/MavenProject.java
(original)
+++ maven/components/branches/sisbell-maven-2.1-profile/maven-project/src/main/java/org/apache/maven/project/MavenProject.java
Thu Aug 21 11:40:45 2008
@@ -163,7 +163,7 @@
         this.mavenTools = mavenTools;
         this.repositoryHelper = repositoryHelper;
         this.mavenProjectBuilder = mavenProjectBuilder;
-        originalModel = ModelUtils.cloneModel( getOriginalModel() );
+        originalModel = ModelUtils.cloneModel( model );
         DistributionManagement dm = model.getDistributionManagement();
 
         if (dm != null) {



Mime
View raw message