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:
Brett Leslie Porter 2005-09-26 08:23:08 +00:00
parent e5070aa9b2
commit 883e9e53db
1 changed files with 1 additions and 1 deletions

View File

@ -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() );