Author: brett
Date: Fri May  6 08:47:28 2005
New Revision: 168624

URL: http://svn.apache.org/viewcvs?rev=168624&view=rev
Log:
fix error handling when there is no active profile

Modified:
    maven/components/trunk/maven-mboot2/src/main/java/MBoot.java

Modified: maven/components/trunk/maven-mboot2/src/main/java/MBoot.java
URL: 
http://svn.apache.org/viewcvs/maven/components/trunk/maven-mboot2/src/main/java/MBoot.java?rev=168624&r1=168623&r2=168624&view=diff
==============================================================================
--- maven/components/trunk/maven-mboot2/src/main/java/MBoot.java (original)
+++ maven/components/trunk/maven-mboot2/src/main/java/MBoot.java Fri May  6 
08:47:28 2005
@@ -152,7 +152,7 @@
 
             Profile activeProfile = userModelReader.getActiveProfile();
 
-            if ( mavenRepoLocal == null )
+            if ( mavenRepoLocal == null && activeProfile != null )
             {
                 mavenRepoLocal = new File( activeProfile.getLocalRepo() 
).getAbsolutePath();
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to