maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r576588 - /maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/MojoExecutionExceptionDiagnoser.java
Date Mon, 17 Sep 2007 21:18:02 GMT
Author: carlos
Date: Mon Sep 17 14:18:01 2007
New Revision: 576588

URL: http://svn.apache.org/viewvc?rev=576588&view=rev
Log:
consider the case when exception message is null

Modified:
    maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/MojoExecutionExceptionDiagnoser.java

Modified: maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/MojoExecutionExceptionDiagnoser.java
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/MojoExecutionExceptionDiagnoser.java?rev=576588&r1=576587&r2=576588&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/MojoExecutionExceptionDiagnoser.java
(original)
+++ maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/MojoExecutionExceptionDiagnoser.java
Mon Sep 17 14:18:01 2007
@@ -61,7 +61,8 @@
 
             String directCauseMessage = directCause.getMessage();
 
-            if ( directCauseMessage != null && mee.getMessage().indexOf( directCauseMessage
) < 0 )
+            String meeMessage = mee.getMessage();
+            if ( ( directCauseMessage != null ) && ( meeMessage != null ) &&
meeMessage.indexOf( directCauseMessage ) < 0 )
             {
                 message.append( "\nEmbedded error: " ).append( directCauseMessage );
             }



Mime
View raw message