From 925b341c178679851d30a440d7aabcd068a7eace Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Tue, 18 Oct 2005 21:16:22 +0000 Subject: [PATCH] merge from tag maven-2.0, rev 326248 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@326250 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/usability/diagnostics/DiagnosisUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-error-diagnostics/src/main/java/org/apache/maven/usability/diagnostics/DiagnosisUtils.java b/maven-error-diagnostics/src/main/java/org/apache/maven/usability/diagnostics/DiagnosisUtils.java index a93b1c142a..8c4b4511e7 100644 --- a/maven-error-diagnostics/src/main/java/org/apache/maven/usability/diagnostics/DiagnosisUtils.java +++ b/maven-error-diagnostics/src/main/java/org/apache/maven/usability/diagnostics/DiagnosisUtils.java @@ -86,7 +86,7 @@ public final class DiagnosisUtils { String rootMsg = root.getMessage(); - if ( rootMsg != null && error.getMessage().indexOf( rootMsg ) < 0 ) + if ( rootMsg != null && ( error.getMessage() == null || error.getMessage().indexOf( rootMsg ) < 0 ) ) { message.append( "\n" ).append( rootMsg );