maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r165173 - /maven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
Date Thu, 28 Apr 2005 18:41:08 GMT
Author: brett
Date: Thu Apr 28 11:41:07 2005
New Revision: 165173

URL: http://svn.apache.org/viewcvs?rev=165173&view=rev
Log:
more helpful error message

Modified:
    maven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

Modified: maven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java?rev=165173&r1=165172&r2=165173&view=diff
==============================================================================
--- maven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
(original)
+++ maven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
Thu Apr 28 11:41:07 2005
@@ -240,6 +240,11 @@
         if ( baseVersion == null )
         {
             baseVersion = version;
+
+            if ( version == null )
+            {
+                throw new NullPointerException( "version was null for " + groupId + ":" +
artifactId );
+            }
         }
         return baseVersion;
     }
@@ -289,4 +294,4 @@
         }
         return result;
     }
-}
\ No newline at end of file
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message