fix error handling when there is no active profile

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@168624 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-05-06 15:47:28 +00:00
parent 216a640dd0
commit d4c059226c
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ public void run( String[] args )
Profile activeProfile = userModelReader.getActiveProfile();
if ( mavenRepoLocal == null )
if ( mavenRepoLocal == null && activeProfile != null )
{
mavenRepoLocal = new File( activeProfile.getLocalRepo() ).getAbsolutePath();
}