avoid NPE, pass on to proper validation

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@219888 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-07-20 12:32:01 +00:00
parent 473d99609c
commit ecb04d2bb8
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,11 @@ public class VersionRange
public static VersionRange createFromVersionSpec( String spec )
throws InvalidVersionSpecificationException
{
if ( spec == null )
{
return null;
}
List restrictions = new ArrayList();
String process = spec;
ArtifactVersion version = null;