mirror of https://github.com/apache/maven.git
avoid NPE
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@291582 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e5070aa9b2
commit
883e9e53db
|
@ -338,7 +338,7 @@ public class MavenMetadataSource
|
|||
|
||||
List versions;
|
||||
Metadata repoMetadata = metadata.getMetadata();
|
||||
if ( repoMetadata != null )
|
||||
if ( repoMetadata != null && repoMetadata.getVersioning() != null )
|
||||
{
|
||||
List metadataVersions = repoMetadata.getVersioning().getVersions();
|
||||
versions = new ArrayList( metadataVersions.size() );
|
||||
|
|
Loading…
Reference in New Issue