o Fixed potential NPE

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@929317 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-03-30 22:03:01 +00:00
parent 14094c260b
commit 1b157097df
1 changed files with 1 additions and 1 deletions

View File

@ -1062,7 +1062,7 @@ public class MavenProject
{
if ( artifacts == null )
{
if ( artifactFilter == null )
if ( artifactFilter == null || resolvedArtifacts == null )
{
artifacts = new LinkedHashSet<Artifact>();
}