Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2013-11-28 11:55:16 -0500
committerFred Bricon2013-11-28 11:55:16 -0500
commitf2359b72d4e27f0dd785e93d72f76055f92efe4b (patch)
tree840ba814cf96104c4a48e5d3d010561bba171163
parent36bef99367a5ecef8177c04c2ad5333cc1a9bd94 (diff)
downloadm2e-core-f2359b72d4e27f0dd785e93d72f76055f92efe4b.tar.gz
m2e-core-f2359b72d4e27f0dd785e93d72f76055f92efe4b.tar.xz
m2e-core-f2359b72d4e27f0dd785e93d72f76055f92efe4b.zip
Fix equals() comparing different types in MavenBuilder.addErrorMarker(IProject, Exception)
Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java
index 2fb8e8ec..e8fdcab6 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java
@@ -126,7 +126,7 @@ public class MavenBuilder extends IncrementalProjectBuilder implements DeltaProv
void addErrorMarker(IProject project, Exception e) {
String msg = e.getMessage();
String rootCause = M2EUtils.getRootCauseMessage(e);
- if(!e.equals(msg)) {
+ if(msg != null && !msg.equals(rootCause)) {
msg = msg + ": " + rootCause; //$NON-NLS-1$
}

Back to the top