mirror of https://github.com/apache/maven.git
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:
parent
473d99609c
commit
ecb04d2bb8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue