You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2012/11/22 21:00:51 UTC

svn commit: r1412653 - /maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InstallMojo.java

Author: rfscholte
Date: Thu Nov 22 20:00:50 2012
New Revision: 1412653

URL: http://svn.apache.org/viewvc?rev=1412653&view=rev
Log:
Fix load of known null value 

Modified:
    maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InstallMojo.java

Modified: maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InstallMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InstallMojo.java?rev=1412653&r1=1412652&r2=1412653&view=diff
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InstallMojo.java (original)
+++ maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InstallMojo.java Thu Nov 22 20:00:50 2012
@@ -257,7 +257,7 @@ public class InstallMojo
         {
             if ( file == null )
             {
-                throw new IllegalStateException( "Artifact has no associated file: " + file );
+                throw new IllegalStateException( "Artifact has no associated file: " + artifact.getId() );
             }
             if ( !file.isFile() )
             {
@@ -298,7 +298,7 @@ public class InstallMojo
         {
             if ( file == null )
             {
-                throw new IllegalStateException( "Artifact has no associated file: " + file );
+                throw new IllegalStateException( "Artifact has no associated file: " + artifact.getId() );
             }
             if ( !file.isFile() )
             {