o check to make sure that system scoped artifacts are not null before checking if they exist.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@495103 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2007-01-11 03:41:08 +00:00
parent 990f9a55c9
commit 6d9caff89f
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public class DefaultArtifactResolver
{
File systemFile = artifact.getFile();
if ( !systemFile.exists() )
if ( systemFile == null || !systemFile.exists() )
{
throw new ArtifactNotFoundException(
"System artifact: " + artifact + " not found in path: " + systemFile, artifact );