more helpful error message

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165173 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-04-28 18:41:07 +00:00
parent 23ec733870
commit 742a8e7037
1 changed files with 6 additions and 1 deletions

View File

@ -240,6 +240,11 @@ public class DefaultArtifact
if ( baseVersion == null )
{
baseVersion = version;
if ( version == null )
{
throw new NullPointerException( "version was null for " + groupId + ":" + artifactId );
}
}
return baseVersion;
}
@ -289,4 +294,4 @@ public class DefaultArtifact
}
return result;
}
}
}