From d4c059226cd2a7f1bf4ef3ff9b195d5d3b179160 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Fri, 6 May 2005 15:47:28 +0000 Subject: [PATCH] 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 --- maven-mboot2/src/main/java/MBoot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-mboot2/src/main/java/MBoot.java b/maven-mboot2/src/main/java/MBoot.java index 1a9d4a5d1e..ce43983a8a 100644 --- a/maven-mboot2/src/main/java/MBoot.java +++ b/maven-mboot2/src/main/java/MBoot.java @@ -152,7 +152,7 @@ public class MBoot Profile activeProfile = userModelReader.getActiveProfile(); - if ( mavenRepoLocal == null ) + if ( mavenRepoLocal == null && activeProfile != null ) { mavenRepoLocal = new File( activeProfile.getLocalRepo() ).getAbsolutePath(); }